This project demonstrates how to use Python's snscrape library that allows you to scrape data from Twitter/x without using the twitter/x developers account. You can use this project to extract tweets, user profiles, metadata, and other relevant information from Twitter/x based on specific search criteria, hashtags, or user profiles.
snscrape requires Python 3.8 or higher. The Python package dependencies are installed automatically when you install snscrape, to install snscrape write the following in the cmd
pip3 install snscrape
Clone the repository to your local machine using the following command:
git clone https://github.com/Muhammad-Talha4k/Twitter-data-scraping.git
-
snscrape is a scraper for social networking services (SNS). It scrapes things like user profiles, hashtags, or searches and returns the discovered items, e.g. the relevant posts.
-
You can scrape Twitter/x's: users, user profiles, hashtags, searches (live tweets, top tweets, and users), tweets (single or surrounding thread), list posts, communities, and trends.
We welcome contributions from the community. Feel free to suggest improvements, fixes, or new features through issues or pull requests.
We extend our appreciation to the creators of the Python Snscrape library used in this project.