Simple Wrapper for the OSRS Highscores
Project description
osrs_highscores
Project Purpose
This is a simple wrapper library to make the OSRS Highscores usable from a python perspective. This wrapper provides straight information from the OSRS Highscores with no post processing, with lookups via snake_case naming.
Installing and Usage
Installation
python -m pip install osrs_highscores
Upgrading
python -m pip install osrs_highscores --upgrade
Basic Usage
>>> from osrs_highsores import Highscores
# Instantiates a new user object from username=zezima from default highscores.
>>> user = Highscores('Zezima')
>>> user.skill['overall']
{'rank': '5238', 'level': '1889', 'experience': '175809308'}
# Target A specific game mode
# Avilable targets are based on the runescape URI (ironman, ultamite, hardcore_ironman, seasonal, deadman, tournament)
>>> user = Highscores("dids", target="ironman")
>>> user.skill['attack']['level']
99
# Update existing data of object
user.update()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.