Member-only story
How to Scrape Tweets With snscrape
A quick guide to scraping tweets after recent updates to Twitter’s API

Overview
Twitter has introduced changes to their API that have rendered various tweet-scraping libraries obsolete. One is GetOldTweets3, which I’ve previously written about. Luckily snscrape has stood out as a library that allows one to scrape tweets without the restrictions of Tweepy.
Due to the undocumented Python wrapper and misunderstandings about its development version, there is still a lot of confusion around this library, as seen in various GitHub issue threads. In this tutorial, I show examples in the hope that they will simplify using this library and reduce the confusion.
Setting Up snscrape
Before downloading snscrape
Snscrape requires at least Python 3.8 or higher. I won’t cover upgrading your Python as there are a multitude of tutorials available online.
Downloading snscrape
When you have the right version of Python, you can now install snscrape.
A simple pip install will suffice, so in your terminal run the command