taibeihacker
Moderator
一个Python脚本,可让您使用Telethon库自动从电报朋友那里刮擦和下载故事。该脚本继续并从故事中保存了照片和视频以及他们的元数据。
这是电报API的限制,无法绕过。
python 3.7或更高的电报帐户帐户API凭据来自电报上的电报朋友,您想跟踪
电视
OpenPyXl
附表
010-110克隆仓库: git克隆3https://github.com/unnohwn/telegram-story-scraper.git.git
cd telegram-story-scraper Install requirements: pip install -r requirements.txt Run the script: python TGSS.py On first run, you'll be prompted to enter: Your API ID Your API Hash Your phone number (with country code) Verification code (sent to your Telegram) Checking interval in seconds (default is 60)
Important Note About Story Access ️
由于电报API限制,此脚本只能访问:的故事- 您已添加到朋友列表中的用户- 其隐私设置允许您查看其故事的用户这是电报API的限制,无法绕过。
Features
Automatically scrapes all available stories from your Telegram friends Downloads both photos and videos from stories Stores metadata in SQLite database Exports data to Excel spreadsheet Real-time monitoring with customizable intervals Timestamp is set to (UTC+2) Maintains record of previously downloaded stories Resume capability Automatic retry mechanismPrerequisites
Before running the script, you'll need:python 3.7或更高的电报帐户帐户API凭据来自电报上的电报朋友,您想跟踪
Required Python packages
pip install -r unigess.txt insupper.txt:电视
OpenPyXl
附表
Getting Telegram API Credentials
访问https://my.telegram.org/auth登录您的电话号码单击“ API开发工具”填写form: App title3:您的应用程序名称harp name sharp name name name name name short short short short short name platflorm:可以将'desktop'spection 3: appi platsion 3: appi prospi'plats : appi trick 3 trick 3创建,即一个数字API_HASH:一字母的字母和数字确保这些凭据安全,您将需要它们运行脚本!010-110克隆仓库: git克隆3https://github.com/unnohwn/telegram-story-scraper.git.git
cd telegram-story-scraper Install requirements: pip install -r requirements.txt Run the script: python TGSS.py On first run, you'll be prompted to enter: Your API ID Your API Hash Your phone number (with country code) Verification code (sent to your Telegram) Checking interval in seconds (default is 60)