2 releases
new 0.1.1 | Feb 28, 2025 |
---|---|
0.1.0 | Feb 25, 2025 |
#1098 in Web programming
55 downloads per month
155KB
4K
SLoC
💥 PRs are welcome.
❗We are still in the early development phase, so please be aware that the interfaces may evolve as we continue to refine the project.
Features
- Authentication with cookies
- Comprehensive user profile management
- Timeline retrieval
- Tweet interactions (like, retweet, post)
- Advanced search capabilities
- User relationship management (follow/unfollow)
Installation
[dependencies]
xplore = "0.1"
Quick start
use dotenv::dotenv;
use std::env;
use xplore::{IProfile, Xplore};
#[tokio::main]
async fn main() {
dotenv().ok();
let cookie = env::var("X_COOKIE_STRING").expect("X_COOKIE_STRING");
let xplore = Xplore::new(&cookie).await.unwrap();
let user_id = xplore.get_user_id("zTgx5").await.unwrap();
println!("user id: {user_id}");
}
Reference projects
This project was refactored based on the above project. Thank you to the developers for their open-source spirit!
Star History
Dependencies
~12–26MB
~383K SLoC