This repository explains how to use sntwitter, which is part of snscrape, for scrapping twitter data. In the example I tried scrapping twitter with the keyword "russian inflation". I only took 10 twitter data related to the keyword. The data I took was only tweets and also the time of the tweet. However, you can modify the program code if you want to retrieve other parts of the tweet.
If you want to run the code locally, you must install some library:
- Pandas
pip install pandas
- Snscrape
pip3 install git+https://github.com/JustAnotherArchivist/snscrape.git
- Cleantext
pip install clean-text[gpl]