snscrape
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.The following services are currently supported:
- Facebook: user profiles, groups, and communities (aka visitor posts)
- Instagram: user profiles, hashtags, and locations
- Mastodon: user profiles and toots (single or thread)
- Reddit: users, subreddits, and searches (via Pushshift)
- Telegram: channels
- Twitter: users, user profiles, hashtags, searches (live tweets, top tweets, and users), tweets (single or surrounding thread), list posts, communities, and trends
- VKontakte: user profiles
- Weibo (Sina Weibo): user profiles
Requirements
snscrape requires Python 3.8 or higher. The Python package dependencies are installed automatically when you install snscrape.Note that one of the dependencies, lxml, also requires libxml2 and libxslt to be installed.
Installation
pip3 install snscrapeRepository