<div align="center">
# xplore
X/Twitter for Rust
[](https://crates.io/crates/xplore)


</div>
>> 💥 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
```toml
[dependencies]
xplore = "0.1"
```
## Quick start
```rust
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
* https://github.com/elizaOS/agent-twitter-client
This project draws inspiration from the aforementioned repositories. We extend our heartfelt gratitude to the developers for their dedication to the open-source ethos!
## Star History
[](https://star-history.com/#solagent-rs/xplore&Date)