The Twitter Tweet Scraper is a Python-based project designed to extract tweets from Twitter using Selenium and WebDriver. It allows users to specify search criteria, such as keywords or hashtags, and retrieve tweets from the Twitter platform. This project uses the Twitter website, simulating user interactions to access and scrape tweet data. The scraped data, including user information and tweet text, is then stored in a CSV file for analysis, research, or any other purpose.
- Automated scraping of tweets from the Twitter website.
- Customizable search queries for specific topics, keywords, or hashtags.
- Error handling to ensure robust performance.
- Configurable variables for tweet count and user credentials.
- Python 3.x
- Selenium for web scraping and automation.
- WebDriver for controlling the web browser.
- Pandas for data manipulation and storage.
- WebDriverWait for efficient synchronization with web page elements.
- Clone this repository:
git clone https://github.com/zararashraf/TwitterScraper.git
- Install the required libraries:
pip install selenium pandas
- Set your Twitter username and password in the script.
- Customize the search query and maximum tweet count as needed.
- Run the script:
python main.py
You can access the source code for this project on GitHub.
- Selenium: https://www.selenium.dev/
- Pandas: https://pandas.pydata.org/
- Python: https://www.python.org/
This project is licensed under the MIT License. Feel free to use, modify, and distribute the code while providing appropriate attribution.