steam-profile

Crates.iosteam-profile
lib.rssteam-profile
version0.2.1
created_at2024-11-01 16:21:22.719216+00
updated_at2025-01-12 14:44:14.537817+00
descriptionA simple library to get basic profile statistics from steam
homepage
repositoryhttps://github.com/ElmerByte/steam-profile
max_upload_size
id1432008
size58,445
ElmerByte (ElmerByte)

documentation

README

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
}
Commit count: 9

cargo fmt