电报爬虫.
git clone https://github.com/wxy1343/tgCrawler
pip install -r requirements.txt
CREATE DATABASE 数据库名称;
api_id = 0
api_hash = '' # 获取api_id和api_hash:https://my.telegram.org/apps
bot_token = '' # 机器人token,找@BotFather创建,使用手机登录可不填
entity = '' # 设置要爬取的群组url或用户,不填全爬
phone = '' # 手机需要+区号
tg_password = '' # 密码
proxy = (socks.SOCKS5, 'localhost', 2333) # 代理
host = 'localhost' # 数据库地址
port = 3306 # 数据库端口
user = '' # 数据库账号
password = '' # 数据库密码
db = '' # 数据库名称
connect_timeout = 10 # 连接数据库超时时间
charset = 'utf8mb4' # 数据库编码
python telegram_crawler.py