Skip to content

🤖 A simple Script to scrape Telegram group members using Telegram API and Telethon

License

Notifications You must be signed in to change notification settings

Amir-Zouerami/TelegramScraper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

What is it?

There are two scripts in this repository:

  • AutoExtract.py
  • ManualExtraction.py

Both scripts help you scrape Telegram group members using Telegram API and Telethon. The difference is AutoExtract.py will scrape all groups automatically, creating a seperate csv file for each group while ManualExtraction.py will list all your groups and prompt you to chose a specific one.

How to use?

There is a code in both scripts that looks like this:

# ------ YOUR PERSONAL INFO
api_id = 0000000  # Replace this with your own api_id
api_hash = 'YOUR HASH HERE'  # Replace this with your own api_hash
phone = '+00000000000'  # Your phone number goes here with the area code and +
client = TelegramClient(phone, api_id, api_hash)

You have to go to your personal Telegram API page and get api_id and api_hash. Then enter those values in the appropriate place. Also make sure to put your phone number in phone.

Dependencies

You have to have Telethon installed to run these scripts.

License

This repository follows an MIT license.

About

🤖 A simple Script to scrape Telegram group members using Telegram API and Telethon

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages