Skip to main content
Use the Python SDK when you want typed request objects, response models, retries, and pagination helpers for TwexAPI REST workflows in scripts, workers, and agent backends.

Install

Until PyPI is published, install from GitHub:
Source: twexapi-dev/x-api-scraper-python

Authenticate

Basic example

Workflow: search tweets to JSON Lines

Workflow: post a tweet

Write actions need a Twitter cookie or auth_token on the request:

Error handling

Enable debug logging with X_API_SCRAPER_DEBUG=true.

References