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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

Details for the file urmarketscraper-1.1.0.tar.gz.

File metadata

  • Download URL: urmarketscraper-1.1.0.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.5 CPython/3.8.1 Windows/10

File hashes

Hashes for urmarketscraper-1.1.0.tar.gz
Algorithm Hash digest
SHA256 2fc979f07da2c888fe074c3835a0485f21a926dcbe3c35a4284ef1155e245fc8
MD5 3f0b41dfd18f5d0fcdf2d738693f596b
BLAKE2b-256 3311bbd796dd8d966726a4c7264ab11202b7031bac099f3e430b284f12a239b2

See more details on using hashes here.

File details

Details for the file urmarketscraper-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: urmarketscraper-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.5 CPython/3.8.1 Windows/10

File hashes

Hashes for urmarketscraper-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7617cfeea1582e3ece081666bfdeb1781cdc4b475c74eeb8cbe314abd35fdf64
MD5 b17f39135b73c4eb0f7c7b5d11a3804e
BLAKE2b-256 ee6025767f6a467725891091e2f45cced1236cd80cf139d41ef75e3ac02f0d71

See more details on using hashes here.

Supported by

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