The script will allow you to scrape a specific number of tweets and their data of any account on twitter. While you can utilize the functions of the script yourselves, you can also test the working of the script by simply executing the XScraper/functions.py. This will execute a test function, which will ask you for your Twitter/X username, Twitter/X password, the account u want to scrape, the number of tweets you want to scrape, the start and end dates of tweet. It will than use that data to scrape the tweets and will save them in the tweets.txt file!
- Install the required dependencies using
pip install -r requirements.txt
- And than execute the script using
python XScraper/functions.py
- It will ask you a series of questions and once you have answered them, it will open a chrome window and will scrape the tweets as per your instructions!