xplore

Crates.ioxplore
lib.rsxplore
version
sourcesrc
created_at2025-02-25 14:18:32.259503+00
updated_at2025-02-28 09:47:25.865859+00
descriptionTwitter/X for Rust
homepage
repositoryhttps://github.com/solagent-rs/xplore
max_upload_size
id1569181
Cargo.toml error:TOML parse error at line 17, column 1 | 17 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include`
size0
(zTgx)

documentation

README

Discord

xplore

X for Rust

Version Crates Downloads GitHub License

💥 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

Star History Chart

Commit count: 0

cargo fmt