Before running the program, make sure to set your credentials in environment variables:
Windows set api_id=12345678 set api_hash=abcdce12345678 Linux export api_id=12345678 export api_hash=abcdce12345678
Install the required dependencies using the requirements.txt file:
pip install -r requirements.txt
Place your account session files in the sessions
folder.
To run the extractor, execute the following command:
python Extrator.py
Wait for the code to finish executing.
- keys.txt: You can add keywords to this file to filter groups. Only groups containing these keywords in their titles will be extracted. - blacklist.txt: You can add keywords to this file to exclude groups. Groups containing these keywords in their titles will be ignored.