15 lines
499 B
Rust
15 lines
499 B
Rust
|
|
use froxy_scrapper::{state::State, types::ClusterLocation};
|
||
|
|
|
||
|
|
#[tokio::main(flavor = "current_thread")]
|
||
|
|
async fn main() {
|
||
|
|
let session = std::env::var("FROXY_COOKIE")
|
||
|
|
.expect("provide `FROXY_COOKIE` with the session cookie from you friends42 instance");
|
||
|
|
let state = State::new(session);
|
||
|
|
|
||
|
|
for a in std::env::args().skip(1) {
|
||
|
|
let res = state.getuser(&a).await.unwrap();
|
||
|
|
serde_json::to_writer_pretty(&mut std::io::stdout(), &res).unwrap();
|
||
|
|
println!();
|
||
|
|
}
|
||
|
|
}
|