{"categories":[{"label":"WWW/HTTP","url":"https://skillfed.io/packages/category/internet-www-http/6"}],"enrichment":{"capability":"twscrape is an async Python library and CLI for querying X/Twitter's Search and GraphQL endpoints using your own account pool, with automatic session management, rate-limit rotation, and SNScrape-compatible data models.","skillfed_tags":["web-scraping","async-api","twitter-x"],"use_cases":["Bulk collection of tweets matching a search query or from specific users for research or analysis.","Monitoring trending topics or specific accounts over time with automatic account rotation to avoid rate limits.","Building a dataset of user metadata, follower networks, or community membership for social network analysis.","Extracting tweet threads and conversation context programmatically for NLP or sentiment analysis pipelines.","Running scheduled scraping jobs via CLI that output JSON Lines for downstream processing or storage."],"what_it_does":"twscrape is an async Python library that wraps X/Twitter's GraphQL and Search APIs by rotating through a pool of your own authorized accounts. It stores session cookies in SQLite, automatically switches accounts when rate-limited, and returns either parsed Tweet/User/Trend objects (compatible with SNScrape's data model) or raw API responses. The library includes both a Python API for concurrent scraping and a CLI for one-off queries.\n\nYou add accounts via browser cookies (the most stable method), and twscrape handles session persistence, per-account proxies, and the mechanics of keeping your scraper running across rate limits. It supports search with product filters (Latest, Top, Media), tweet threads and replies, user timelines, followers, lists, communities, and trends. The async/await design lets you run multiple concurrent scrapers efficiently.","worth_installing":"Yes, if you need to scrape X/Twitter data at scale and can manage authorized account credentials responsibly. The library is actively maintained, has low install friction, uses a permissive MIT license, and offers both programmatic and CLI interfaces. Main considerations: you must provide your own account cookies (no API key), and X's Terms of Service discourage multi-account use\u2014deploy with awareness of platform policy and your own risk tolerance."},"id":"twscrape","links":{"html":"https://skillfed.io/packages/twscrape","md":"https://skillfed.io/packages/twscrape.md","pypi":"https://pypi.org/project/twscrape/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-08-07","license_spdx":null,"license_treatment":"permissive","name":"twscrape","python_support":"supports_current","summary":"Twitter GraphQL and Search API implementation with SNScrape data models"},"popularity":{"monthly_downloads":132475,"position":11550,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.20.0"}
