Giter VIP home page Giter VIP logo

telegram_pic_download's Introduction

Telegram_Pic_download

电报图片批量下载

·环境: python3

·依赖: Telethon,PySocks


使用方法:

·在https://my.telegram.org/apps 获取api-id以及api-hash

·修改脚本变量

·运行(首次运行脚本需要输入tg所绑定的手机号和验证码)

·其他:关于Telethon的文档在这里: https://telethon.readthedocs.io/en/latest/


去掉重复文件(MD5比值)

并获取tg/目录下所有文件的md5并去重

find tg/ -maxdepth 1 -type f -print0 | xargs -0 md5sum | sort |uniq -w 32  > uniq.txt

将非重复的文件已到tg-uniq/

mkdir tg-uniq

cat uniq.txt| cut -c 35- | tr '\n' '\0' | xargs -0 -i mv {}  tg-uniq/

剩下的重复文件可以选择性删除

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.