A Python project to check the status of Twitter (X) user accounts. This script uses Selenium to scrape user profile pages and determine if an account is active, suspended, or not found. It supports multi-threading for faster performance.
- Scrapes user profile pages to determine account status.
- Supports
active,suspended, ornot foundstatuses. - Multi-threaded execution for improved speed.
- Lightweight and headless browser configuration.
- Python: Ensure Python 3.7+ is installed.
- Google Chrome: Install the latest version of Google Chrome.
- ChromeDriver: Download the compatible version of ChromeDriver for your Chrome version from ChromeDriver.
- Dependencies: Install required Python packages:
pip install selenium
- Clone this repository:
git clone https://github.com/your-username/twitter-user-status-checker.git
- Navigate to the project directory:
cd twitter-user-status-checker - Place
chromedriver.exein the project root directory. - Create a file named
usernames.txtin the project root and list Twitter usernames, one per line.
Run the script:
python twitter_user_check.py- The statuses of the usernames will be written to
results.txtin the project root. - Each line in
results.txtwill contain the username and its status, e.g.,:user1: active user2: suspended user3: not found
- This project uses Selenium in headless mode to minimize resource usage.
- Multi-threading accelerates account checks by running multiple requests in parallel.
This project is licensed under the MIT License. See the LICENSE file for more details.
Disclaimer: This project is for educational purposes only. Scraping websites may violate their terms of service. Use responsibly.