urmarketscraper

Collects market offers for Urban Rivals.


License
MIT
Install
pip install urmarketscraper==1.1.0

Documentation

Urban Rivals Market Scraper

Collects market offers for Urban Rivals.

Install from https://pypi.org/project/urmarketscraper/

This 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.

Basic Usage Example

Full Documentation

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"}}}