Skip to main content

Collects market offers for Urban Rivals.

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

urmarketscraper-1.1.0.tar.gz (4.3 kB view hashes)

Uploaded Source

Built Distribution

urmarketscraper-1.1.0-py3-none-any.whl (4.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page