WIP
A lib for check my-crates all downloads.
Add dependencies
rust
[dependencies]
downloads = "0.0.1"
Example ```rust extern crate downloads;
use downloads::*;
fn main() {
let mut totals = 0;
let userid = "56717";
let v: Result
println!("crate name: {}", i["name"]);
println!("downloads: {}",i["downloads"]);
println!("\n");
totals += i["downloads"].as_u64().unwrap() as usize;
}
}
}
println!("Total Downloads: {}", totals);
}
```
I want to check my crates all downloads, but I don't know who to scrapy !
However, I found my userid.
Steps
1. Open https://crates.io
2. Login
3. Open Chrome, More Tools -> Developer Tools, select Network Tab, then refresh
4. Finally, find something like crates?user_id=56717
, double click, will see all your user info.