{"repo":"vladkens/twscrape","free":true,"listed":false,"github":"https://github.com/vladkens/twscrape","clone":"git clone https://github.com/vladkens/twscrape.git","description":"Python library and CLI for X/Twitter scraping with multi-account rotation and built-in rate-limit handling.","language":"Python","stars":2689,"topics":["twitter","scraper","twitter-api","twitter-bot","twitter-scraper","x-api","data-collection","data-mining","scraping","social-media-automation"],"license":"MIT","category":"scrapers-browser-automation","readme_excerpt":"twscrape twscrape is an async Python library and CLI for X/Twitter Search and GraphQL endpoints. It runs on your own account pool, keeps sessions in SQLite, rotates accounts when an endpoint is rate-limited, and returns either parsed SNScrape-style models or raw API responses. Install httpx is the default HTTP backend. For browser-like TLS fingerprinting, install the optional curl-cffi backend: Features - Search and GraphQL X/Twitter API methods - Async/await API for running multiple scrapers concurrently - Login flow with optional email verification code retrieval - Cookie-based account setup - Saved account sessions and per-account proxies - Raw Twitter API responses and parsed SNScrape-compatible models - Automatic account switching across rate-limited operations Sponsor RapidProxy is a residential proxy platform with 90M+ real IPs across 200+ countries. It supports rotation, geo-targeting, and high concurrency to improve scraping success and reduce bans. Start your free trial today! Discount Code: RAPID10 to get 10% off. Start With Cookies twscrape requires authorized X/Twitter accounts. The most stable setup is to add an account from browser cookies containing auth token and ct0 . The recommended way to export them from your current browser profile is unjar: my account is a local identifier; twscrape does not verify that it matches the X username stored in the cookies. Run the same command again to replace its saved session while preserving credentials, statistics, locks","default_branch":null,"files":null,"tree":[],"storefront":"/r/vladkens","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/vladkens/twscrape/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}