Automate the process of retrieving member information from a Telegram group using this Python script. The script utilizes the Selenium library to interact with Telegram Web and extract member details.
-
Ensure you have Python installed on your system.
-
Clone this repository or download the provided code:
git clone [https://github.com/avinashkranjan/Amazing-Python-Scripts]
-
Navigate to the project directory:
cd Telegram Get-Group-Members Bot/telegram.py
-
Install the required dependencies:
pip install -r requirements.txt
-
Download the ChromeDriver suitable for your Chrome version and place it in the project directory.
-
Make sure you have a compatible version of Chrome installed on your system.
-
Run the script:
python telegram.py
-
A Chrome browser window will open, displaying Telegram Web.
-
Scan the QR code using your phone to log in to Telegram Web.
-
After successful login, the script will wait for 10 seconds to load the page.
-
Enter the name of the group you want to retrieve member information for when prompted.
-
The script will print the member names and images on the terminal.
- This script uses the Chrome WebDriver for Selenium automation. Ensure that the
chromedriver
executable matches your Chrome browser version and is located in the project directory. - The script waits for 10 seconds to ensure proper loading of the Telegram Web page before interaction. You can modify this delay if necessary.