Twikit is a Python library and API wrapper designed for interacting with X (Twitter). It simulates browser requests and mimics private network traffic to enable programmatic access to the platform without requiring an official API key.
The project focuses on social media automation and data extraction, featuring tools for scraping user profiles, trending topics, and chronological tweet histories. It includes a session manager that handles user authentication, two-factor authentication, and cookie persistence to maintain active account access.
The library's capabilities cover a broad range of social interactions, including publishing posts, managing direct messages, and controlling user relationships such as following or blocking. It provides specialized utilities for media handling, allowing for the uploading of assets and the downloading of images, videos, and synchronized subtitle tracks. Additionally, it supports social graph management through curated list administration and community interaction.
To maintain access and stability, the toolkit integrates with external captcha solving services to bypass bot detection and supports routing network traffic through configurable proxy servers.