#profile #steam #basic #statistics #sync #default #async

steam-profile

A simple library to get basic profile statistics from steam

5 releases

0.2.1 Jan 12, 2025
0.2.0 Jan 12, 2025
0.1.6 Nov 1, 2024
0.1.5 Nov 1, 2024
0.1.0 Nov 1, 2024

#51 in #profile

Download history 243/week @ 2024-10-27 58/week @ 2024-11-03 3/week @ 2024-11-10 3/week @ 2024-11-17 5/week @ 2024-12-08 1/week @ 2024-12-15 204/week @ 2025-01-12

204 downloads per month

MIT license

24KB
473 lines

A simple library to get basic profile statistics from steam

library uses ureq and scraper to retrive account information from a steam page

Features

  • sync - on by default provides sync implimentation of this library
  • async - provides async implimentation of this library
  • print - on by default provides pretty print method for Profile

Examples

fn sync_example() {
    use steam_profile::synclib::Profile;
    let profile: Profile = Profile::get_full_profile("test" /*Name Id or URL*/);
    profile.print_profile(); // Prints stats in a nice looking table
}

// requires async feature
async fn async_example() {
    use steam_profile::asynclib::Profile;
    let profile: Profile = Profile::get_full_profile("test" /*Name Id or URL*/).await;
    profile.print_profile(); // Prints stats in a nice looking table
}

Dependencies

~8–17MB
~225K SLoC