https://github.com/obaskly/telegram-scraper
A script that scrapes messages of a specific user from a telegram group chat
https://github.com/obaskly/telegram-scraper
api bot python python3 scraper scraping telegram telegram-bot
Last synced: 4 months ago
JSON representation
A script that scrapes messages of a specific user from a telegram group chat
- Host: GitHub
- URL: https://github.com/obaskly/telegram-scraper
- Owner: obaskly
- Created: 2023-04-30T01:45:14.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-04-30T02:46:39.000Z (over 2 years ago)
- Last Synced: 2025-01-08T16:30:31.668Z (12 months ago)
- Topics: api, bot, python, python3, scraper, scraping, telegram, telegram-bot
- Language: Python
- Homepage:
- Size: 202 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
AH-Scraper
:)
Key Features •
How To Use •
Requirements •
Copyright
## Key Features
* Get messages of a specific user
* No need for bots
## How To Use
1. Log in to your Telegram core: https://my.telegram.org.
2. Go to "API development tools" and fill out the form.
3. You will get basic addresses as well as the api_id and api_hash parameters required for user authorization.
4. Put your api_id and api_hash in the script
5. Put your number in international format
6. Run script using the following command
`python main.py -u USER_ID -o OUTPUT_FILENAME.txt`
It will ask you for a code, you will receive that code in your telegram, copy paste the code, enter your telegram password, and you are ready to use the script.
Go to a group and send the command `/scrape`, the script will get all the messages of that user and store them to a text file.
## Requirements
`pip install telethon colorama`
> **Note**
> Don't delete the `anon.session` file so that you don't have to enter the verification code and your password every time you run the script
> Don't use your main account (If you don't have an extra account, don't use your main account a lot because there is a risk of getting a ban)
## Copyright
All rights reserved to Bropocalypse Team.