Crates.io | xplore |
lib.rs | xplore |
version | |
source | src |
created_at | 2025-02-25 14:18:32.259503+00 |
updated_at | 2025-02-28 09:47:25.865859+00 |
description | Twitter/X for Rust |
homepage | |
repository | https://github.com/solagent-rs/xplore |
max_upload_size | |
id | 1569181 |
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` |
size | 0 |
💥 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.
[dependencies]
xplore = "0.1"
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}");
}
This project was refactored based on the above project. Thank you to the developers for their open-source spirit!