snscrape
A social networking service scraper
What it is and what it does
snscrape is a multi-platform social network scraper that extracts posts, profiles, hashtags, and search results from eight services: Twitter, Instagram, Facebook, Reddit, Mastodon, Telegram, VKontakte, and Weibo. It works both as a command-line tool (outputting URLs or JSONL) and as a Python library, though library usage is undocumented. The tool depends on requests, lxml, beautifulsoup4, filelock, and pytz to handle HTTP requests, HTML parsing, and timezone logic.
The project is in Beta status and has been dormant since mid-2023—the last release was June 2023 and the last commit November 2023. While it has no known security vulnerabilities and low install friction, the lack of recent maintenance means scrapers may break as target platforms change their page layouts or APIs. It is licensed under GPLv3+, requiring any derivative work to remain open-source.
Use it for:
- Archive Twitter threads or user timelines for research, journalism, or personal record-keeping.
- Collect hashtag posts from Instagram or Twitter for sentiment analysis or trend monitoring.
- Scrape Reddit discussions or subreddit posts for data analysis or community research.
- Gather user profile information or public posts from multiple platforms in bulk.
- Export social media data to JSONL format for downstream processing or database ingestion.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Scrapes user profiles, posts, hashtags, and searches from multiple social networks (Twitter, Instagram, Facebook, Reddit, Mastodon, Telegram, VKontakte, Weibo) via CLI or Python library, returning URLs or structured data.
Yes, if you need to scrape social media data and can tolerate dormant maintenance. The low install friction and lack of vulnerabilities make it safe to try. However, be prepared for scrapers to break without warning as platforms change; test against your target service first and monitor the GitHub repository for community fixes. Not suitable for production systems requiring active support.
Install
snscrape on PyPI
pip
pip install snscrapeuv
uv add snscrapepoetry
poetry add snscrapeInstalling snscrape
Before you install
Low install friction with standard web-scraping dependencies. Maintenance is dormant—last release was June 2023 and last commit November 2023—so expect no active bug fixes or feature updates, though the repository remains public and unarchived.
License in practice
Licensed under GPLv3+, a copyleft license. Any derivative work or distribution must also be open-source under compatible terms; proprietary use or closed-source redistribution is not permitted.
Quickstart
pip install snscrape
# CLI: collect tweets by a user
snscrape twitter-user textfiles
# Or with options
snscrape --max-results 100 --jsonl twitter-hashtag archiveteam
Requires Python 3.8 or higher; lxml dependency also requires libxml2 and libxslt system libraries to be installed.
Verify before relying
- Whether scrapers remain functional given social networks' frequent API and page-structure changes since last update in June 2023.
- Whether library-mode usage (undocumented per the description) is stable or has breaking changes.
- Current rate-limiting or blocking behavior from target platforms.
Package facts
| License | not declared (copyleft) |
| Python support | supports the current Python release (~=3.8) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 5 — requests, lxml, beautifulsoup4, filelock, pytz |
| Maintenance | dormant — 1,149 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 73,937/month — #14,907 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: snscrape-0.7.0.20230622-py3-none-any.whl
Tags
More WWW/HTTP packages
urllib3 is an HTTP client library that provides…
permissive · top 100 on PyPI
requestsRequests is a Python HTTP library that…
permissive · top 100 on PyPI
h11h11 is a pure-Python HTTP/1.1 protocol…
permissive · top 100 on PyPI
httpxHTTPX is a fully featured HTTP client library…
permissive · top 100 on PyPI
httpcoreA minimal low-level HTTP client library that…
permissive · top 100 on PyPI
aiohttpaiohttp is an async HTTP client and server…
permissive · top 100 on PyPI
ScweetScrape tweets, profiles, followers, and user…
permissive · top 15,000 on PyPI
instaloaderDownloads public and private Instagram…
permissive · top 15,000 on PyPI
socid-extractorParses HTML and API responses from 130+ social…
permissive · top 15,000 on PyPI
twikitTwikit is a Twitter scraper library that lets…
permissive · top 15,000 on PyPI
sherlock-projectSearches for usernames across 400+ social…
permissive · top 15,000 on PyPI
zernio-sdkUnified Python client for publishing social…
permissive · top 15,000 on PyPI
twscrapetwscrape is an async Python library and CLI for…
permissive · top 15,000 on PyPI
python-jobspyScrapes job postings from LinkedIn, Indeed,…
unclear · top 15,000 on PyPI
instagrapiUnofficial Instagram API wrapper that automates…
permissive · top 5,000 on PyPI
vk-apiPython wrapper for the VKontakte (VK) social…
permissive · top 15,000 on PyPI