libs.steamapi module#
- libs.steamapi.get_item(steam_url: str, country_code: int = 24) str [source]#
- Parameters:
steam_url (str) – Steam url
country_code (int) – country code
- Return type:
str
- Example:
get_item(”https://steamcommunity.com/market/listings/753/746850-Chinatown” )
- Returns:
price of the item returns ₹ 269.36 (price of the item)
- Exception:
IndexError : RE: Error in regex
- Exception:
NP: No price found
- Exception:
KeyError : FA: Failed to get price
Takes a steammarket url and returns its priceOptional country code, default is 24 for Indian-INR, 1 for US-USD