An open API service indexing awesome lists of open source software.

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

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.