Unofficial X API client. Follow, Like, DM, Search and other actions.
Project description
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.
Project details
Release history Release notifications | RSS feed
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 xtwitterapi-1.0.1.tar.gz.
File metadata
- Download URL: xtwitterapi-1.0.1.tar.gz
- Upload date:
- Size: 14.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.3 Linux/6.11.0-061100-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6a71d51061d5d9cc2ff1566b1a72d260270aea67b55365bb697a3153c001442d
|
|
| MD5 |
f90f14a15ebfa5afb80e9dce24b1cdc7
|
|
| BLAKE2b-256 |
50ee504ff7b08f1dae88f12a72f184569fe16606582fe0e0b81a4d2f017873ce
|
File details
Details for the file xtwitterapi-1.0.1-py3-none-any.whl.
File metadata
- Download URL: xtwitterapi-1.0.1-py3-none-any.whl
- Upload date:
- Size: 25.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.3 Linux/6.11.0-061100-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0258fb35baf945d2fa5eeca2b5430a471b605f354ccfb2f18933b6db1c705fdf
|
|
| MD5 |
e510e5a825297e5d4f3c0dc40d12861e
|
|
| BLAKE2b-256 |
13f733168aae854195fc101cfc4ae578f16c3cbe1636169ee0c3f56d68ef259b
|