Git Product home page Git Product logo

teledown's Introduction

teledown

使用Telethon批量下载telegram中任意群组/频道文件

使用教程

  1. 下载本项目
  2. 将config.example.json重命名为config.json
  3. 填写配置文件 教程
  4. 安装依赖 教程

配置文件解释

{
  "api_id": "参见下方教程",
  "api_hash": "参见下方教程",
  "save_path": "保存路径",
  "proxy_port": "代理端口,不需要则直接删除此项",
  "phone": "手机号",
  "bot_token": "机器人登录配置"
}

获取api_id和api_hash

https://www.jianshu.com/p/3d047c7516cf

依赖安装教程

执行pip3 install -r requirements.txt

注意事项

  1. 首次使用时,先执行main.py,选择功能1“查看所有频道”,此操作是为了将频道信息缓存到本地。所以,当你需要下载新加入的频道时,也请务必先更新缓存。
  2. 如果你想下载速度更快,pip3 install cryptg
  3. 本程序仅支持python3

常见错误

  1. AttributeError: module 'socks' has no attribute 'SOCKS5',请确认安装了PySocks
  2. Server sent a very new message with ID xxxxxxxxxxxxxxxxxxx, ignoring,这个问题是由于当前设备时间与telegram服务器时间差距过大(大于30s)。 解决办法:服务器时间戳是xxxxxxxxxxxxxxxxxxx >> 32,请将本地时间戳修改到与服务器时间戳相差30s以内
  3. Could not find the input entity for PeerUser,参见注意事项第一点

Star历史

Star History Chart

teledown's People

Contributors

holll avatar

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.