Urban Rivals Market Scraper
Collects market offers for Urban Rivals.
https://pypi.org/project/urmarketscraper/
Install fromThis is a screen scraper utility for Urban Rivals.
To use, call market.get_market_offers
The first parameter is the requests.Session()
object which contains a logged-in
user. The second parameter is the list of ids
for the characters in question.
The third parameter is an optional override for what what the base market address
is. Default is https://www.urban-rivals.com/market/?
. Any url given here must end
with a ?
so that the URL encoding can complete correctly.
Example
>>> from urmarketscraper import market
>>> market.get_market_offers(session, ["1462", "1463"])
Returns:
{"1462": {"_Offer__id": 1462, "_Offer__level_price_dict": {"1": "799", "4": "799"}}, "1463": {"_Offer__id": 1463,
"_Offer__level_price_dict": {"2": "27887"}}}