Install and Use Telegram Scraper Tool in Termux: A Complete Guide
Stephano Kambeta

Stephano Kambeta @terminaltools

About: Cyber security and Ethical hacking teacher

Joined:
Mar 12, 2025

Install and Use Telegram Scraper Tool in Termux: A Complete Guide

Publish Date: Apr 22
0 0

Hello everyone,

In today’s post, I’m back with another Termux tutorial. This time, I’ll guide you through the process of installing and using the Telegram Scraper Tool in Termux.

As you know, Telegram is one of the most popular messaging platforms, with millions of active users worldwide. The Telegram Scraper Tool allows you to:

  • Extract all members' data from a Telegram group.
  • Send them direct messages.
  • Add them to your new group effortlessly.

Let’s dive right into the installation and usage process.

Install and Use Telegram Scraper Tool in Termux: A Complete Guide

How to Use Telegram Scraper in Termux

Step 1: Install Termux

  1. Download and install Termux, just click the button below to download.

Termux.apk102MiB

Step 2: Set Up Storage Access

  1. Open Termux and type:
termux-setup-storage
Enter fullscreen mode Exit fullscreen mode
  1. Grant storage access when prompted.

Step 3: Update Termux Packages

  1. Update Termux by typing:
apt update && apt upgrade
Enter fullscreen mode Exit fullscreen mode

Step 4: Install Python

  1. Install Python 3 by typing:
pkg install python
Enter fullscreen mode Exit fullscreen mode

Step 5: Install Git

  1. Install Git by typing:
pkg install git
Enter fullscreen mode Exit fullscreen mode

Step 6: Clone the Telegram Scraper Repository

  1. Clone the tool using the following command:
git clone https://github.com/th3unkn0n/TeleGram-Scraper.git
Enter fullscreen mode Exit fullscreen mode

Step 7: Navigate to the Tool’s Directory

  1. Navigate to the directory by typing:
cd TeleGram-Scraper
Enter fullscreen mode Exit fullscreen mode
  1. View the contents using:
ls
Enter fullscreen mode Exit fullscreen mode

Step 8: Install the Tool’s Requirements

  1. Set up the requirements by typing:
python setup.py -i
Enter fullscreen mode Exit fullscreen mode
  1. When prompted, type y to install the necessary dependencies.

Step 9: Getting Your API Credentials

To use the Telegram Group Scraper, you need to obtain your API credentials from Telegram. Follow these steps to get your api_id and api_hash:

  1. Go to the Telegram API Development page and log in with your Telegram account. Going to the Telegram API Development page and logging in with your Telegram account.
  2. Click on the "API development tools" option. Clicking on the
  3. Fill in the required fields, such as the app name and platform. You can choose "Other" as the platform type. Filling in the required fields, such as the app name and platform.
  4. After submitting, you will receive your api_id and api_hash. Save these as you will need them during the setup process. submitting and receiving your api_id and api_hash.

Now, type the following command in Termux to configure the tool with your API credentials:

python setup.py -c
Enter fullscreen mode Exit fullscreen mode

When prompted, provide the following:

  • Your api_id.
  • Your api_hash.
  • Your phone number linked to the Telegram account.

After entering these details, the tool will be fully configured and ready to use.

configuring the tool with your API credentials

Step 10: Start Scraping

  1. To start scraping members from a Telegram group, type:
python scraper.py
Enter fullscreen mode Exit fullscreen mode
  1. Select a group by entering its number. The members will be saved as members.csv. Selecting a group by entering its number.

Step 11: Send Bulk Messages

  1. Use the following command to send messages to the scraped members:
python smsbot.py members.csv
Enter fullscreen mode Exit fullscreen mode

Step 12: Add Members to Your Group

  1. Add the scraped members to your group by typing:
python add2group.py members.csv
Enter fullscreen mode Exit fullscreen mode

Updating the Tool

To keep the Telegram Group Scraper up-to-date, you can easily update it using the setup script. Run the following command to update:

python3 setup.py -u
Enter fullscreen mode Exit fullscreen mode

Keeping the tool updated ensures you have the latest features and fixes, improving its performance and compatibility.

Troubleshooting Common Issues

API Credential Errors

If you encounter errors related to API credentials, ensure the following:

  • You have entered the correct api_id and api_hash during the configuration.
  • Your Telegram account is active and not restricted from using the API.
  • The API credentials are correctly copied from the Telegram API Development page.
  • Double-check your API credentials for typos or missing characters to prevent connection errors.

Tool Not Collecting Data

If the scraper is not collecting group member data as expected, try the following steps:

  • Ensure you are a member of the group you are trying to scrape.
  • Check if the group has enabled privacy settings that restrict member information.
  • Verify that you are using the latest version of the tool by running the update command:
python3 setup.py -u
Enter fullscreen mode Exit fullscreen mode

Sending Bulk SMS Not Working

If the SMS bot is not sending messages as expected, consider the following troubleshooting steps:

  • Check if you have the correct CSV file with valid phone numbers and data.
  • Ensure your network connection is stable.
  • Try sending a few messages manually to confirm that the issue is with the script and not your network or SMS service.
  • For persistent issues, refer to the tool’s documentation or contact me in the comment section below.

Success! That’s it! You’ve successfully installed and learned how to use the Telegram Scraper Tool in Termux.

If you found this guide helpful, feel free to share it and stay tuned for more Termux tutorials.

Originally published at TerminalTools

Comments 0 total

    Add comment