Giter Club home page Giter Club logo

twitterscraper's Introduction

Twitter Tweet Scraper

License

Description

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.

Features

  • 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.

Libraries and Technologies Used

  • 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.

Usage

  1. Clone this repository: git clone https://github.com/zararashraf/TwitterScraper.git
  2. Install the required libraries: pip install selenium pandas
  3. Set your Twitter username and password in the script.
  4. Customize the search query and maximum tweet count as needed.
  5. Run the script: python main.py

Code Repository

You can access the source code for this project on GitHub.

Screenshots

image image

Credits

License

This project is licensed under the MIT License. Feel free to use, modify, and distribute the code while providing appropriate attribution.

twitterscraper's People

Contributors

zararashraf avatar yangziy avatar

Stargazers

Aaron Patterson avatar Toby Avila avatar Nandhakumar N avatar  avatar  avatar Xi avatar 徐畅 avatar  avatar

Watchers

 avatar

Forkers

yangziy

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.