- now .session files can be use for authorization. Place them to directorty!
- Added scraping user-ids.
- option on/off user-names and user-ids scraping. (in options)
- Converter phone numbers to .session
First thing, find out your API_ID and API_HASH tokens. Go to: https://my.telegram.org/apps and authorize. Choice API Development Tools
In the next window, fill in App title and Short name. Choice desktop.
Press Create Application, copy API_ID и API_HASH.
API_ID and API_HASH are suitable for any accounts. You can use API_ID and API_HASH a third party account
Windows
- Download python 3.12 https://www.python.org/ftp/python/3.12.0/python-3.12.0-amd64.exe
- When installing, be sure to check the Add to PATH box
- Open cmd.
cd
to scraper directory. For example:cd C:Users/Keqy/programs/repos/telegram-parser-v2.0
- Create virtual environment
py -m venv venv
, activate it.\venv\Scripts\Activate
- Install telethon
pip install telethon
Linux/MacOS
- Open cmd, update packages.
sudo apt update
- Install python and git.
sudo apt install python3 python3-pip git -y
- Download repository.
git clone https://github.com/Keqy/telegram-parser-v2.0/
cd
to scraper directory.- Create virtual environment
py -m venv venv
, activate it.\venv\bin\Activate
In options enter your API_ID (only numbers) and API_HASH (numbers and letters) without spaces.
Here in points 3 and 4 you can on/off usernames and userids scraping option. By default, both will be scraped
Converter place in options in point Add user-bot account
. Give the converter a phone number and enter the redeem code. In directory creates .session file for user-bot quick authorization. You also can place your .session files in program directory and use them.
Converter does not work if API_ID and API_HASH incorrect for any new account DOES NOT required API_ID and API_HASH
Options are stored in options.txt
in project directory.
For escape, press e
.
The main menu will open.
In scraping window, select account that is in groups for scraping.
Sometimes telethon-library errors may appear here. In this case, you need to restart the program
Scraped usernames and user-ids will be located in project directory in usernames.txt
and userids.txt
.
In inviting window, select account that is in groups for inviting. Then program ask you to enter the group name.
Write to me in telegram @DonMinionAmerimaChesburger
_