This directory contains Python examples for using the Twitter API client.
- Install dependencies:
pip install -r requirements.txt
- Set your API key:
export TWITTER_API_KEY='your_api_key'
- Get user information
- Get user tweets
- Pagination examples
python examples/user_examples.py
- Basic tweet search
- Advanced search with filters
- Search pagination
python examples/search_examples.py
- Get tweet replies
- Get tweet quotes
- Time-based filtering
- Pagination examples
python examples/tweet_examples.py
.
├── README.md # This file
├── requirements.txt # Project dependencies
├── src/ # Source code
│ ├── client.py # API client implementation
│ └── utils/ # Utility functions
└── examples/ # Example scripts
For detailed API documentation, please visit https://twitterapi.io/docs