A fork of Tweepy adapted to work with Virtuals's enterprise Twitter endpoint
Project description
Virtual Tweepy: Twitter for Python!
Installation
The easiest way to install the latest version from PyPI is by using pip:
pip install virtuals-tweepy
Using GAME's X enterprise API credentials (higher rate limits)
-
To get the access token for this option, run the following command:
poetry run virtuals-tweepy auth -k <GAME_API_KEY>
You will see the following output:
Waiting for authentication... Visit the following URL to authenticate: https://x.com/i/oauth2/authorize?response_type=code&client_id=VVdyZ0t4WFFRMjBlMzVaczZyMzU6MTpjaQ&redirect_uri=http%3A%2F%2Flocalhost%3A8714%2Fcallback&state=866c82c0-e3f6-444e-a2de-e58bcc95f08b&code_challenge=K47t-0Mcl8B99ufyqmwJYZFB56fiXiZf7f3euQ4H2_0&code_challenge_method=s256&scope=tweet.read%20tweet.write%20users.read%20offline.access
After authenticating, you will receive the following message:
Authenticated! Here's your access token: apx-<xxx>
Using your own X API credentials
- If you don't already have one, create a X (twitter) account and navigate to the developer portal.
- Create a project app, generate the following credentials and set them as environment variables (e.g. using a
.bashrcor a.zshrcfile):TWITTER_BEARER_TOKENTWITTER_API_KEYTWITTER_API_SECRET_KEYTWITTER_ACCESS_TOKENTWITTER_ACCESS_TOKEN_SECRET
Latest version of Python and older versions not end of life (bugfix and security) are supported.
Acknowledgments
This project is a modified version of Tweepy, originally created by Joshua Roesslein. Original work is Copyright (c) 2009-2023 Joshua Roesslein and is licensed under the MIT License.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file virtuals_tweepy-0.1.3.tar.gz.
File metadata
- Download URL: virtuals_tweepy-0.1.3.tar.gz
- Upload date:
- Size: 88.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.1 CPython/3.13.2 Darwin/24.3.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3af0c4284b9e1b879bcc24b1025db532c521ce7cac0df92586366f8ab2c36f5a
|
|
| MD5 |
886fa00d66fa2f3c078ebb06ac2ba263
|
|
| BLAKE2b-256 |
2031cc28855e5ffd141dc2f4d14ba7d2ece7c015f89d881931bda9dff5c0b616
|
File details
Details for the file virtuals_tweepy-0.1.3-py3-none-any.whl.
File metadata
- Download URL: virtuals_tweepy-0.1.3-py3-none-any.whl
- Upload date:
- Size: 101.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.1 CPython/3.13.2 Darwin/24.3.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5ade9405a324e25530c82957febef8c91650f73016ce96b06e0da7cd2bc53b3c
|
|
| MD5 |
27233b3307580a948a9589cd3a6e0e3a
|
|
| BLAKE2b-256 |
0a6e5a510ef85df55d5ae22386639b86af49825ac73bb138680b269c2ee5b66d
|