xapi - Unofficial X API client
X frontend app reverse engineered and implemented in Python.
ONLY FOR EDUCATIONAL PURPOSES. This repository has no response to any issues for your account
Install
pip install xtwitterapi
Features
- Follow, Like, Search, DM, Notifications and more. See
modulesdirectory for more details.
Usage
from xapi import X
async def main():
USERNAME = "your_username"
PASSWORD = "your_password"
x = await X.create(username=USERNAME, password=PASSWORD)
follow_response = await x.follow(username="elonmusk")
print(follow_response)
search_response = await x.search(query="elonmusk")
print(search_response)
like_response = await x.like(tweet_id="1234567890")
print(like_response)
dm_response = await x.send_dm(username="elonmusk", message="Hello from xapi!")
print(dm_response)
if __name__ == "__main__":
asyncio.run(main())
See more examples in tests directory. There will be an example for each available module.
Release files for xtwitterapi 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| xtwitterapi-1.0.1.tar.gz | 14.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| xtwitterapi-1.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size:40.0 kB
Release files / xtwitterapi-1.0.1.tar.gz
| Download URL | xtwitterapi-1.0.1.tar.gz |
|---|---|
| Size | 14.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6a71d51061d5d9cc2ff1566b1a72d260270aea67b55365bb697a3153c001442d
|
|
BLAKE2b-256 checksum How to use checksums |
50ee504ff7b08f1dae88f12a72f184569fe16606582fe0e0b81a4d2f017873ce
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.3 CPython/3.12.3 Linux/6.11.0-061100-generic
|
Release files / xtwitterapi-1.0.1-py3-none-any.whl
| Download URL | xtwitterapi-1.0.1-py3-none-any.whl |
|---|---|
| Size | 25.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0258fb35baf945d2fa5eeca2b5430a471b605f354ccfb2f18933b6db1c705fdf
|
|
BLAKE2b-256 checksum How to use checksums |
13f733168aae854195fc101cfc4ae578f16c3cbe1636169ee0c3f56d68ef259b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.3 CPython/3.12.3 Linux/6.11.0-061100-generic
|