Skip to main content

An Old School Runescape (OSRS) Hiscore Library

Project description

OSRS Hiscores API Library

Purpose

The purpose of this library is to interface with Old School Runescape (OSRS)'s Hiscores page and allow developers to access stat levels, ranks, and experience levels in a more intuitive way (via dictionary). This library accesses this information via a http.client request and parses the information accordingly.

Installation

python -m pip install OSRS-Hiscores

Example Usage

from OSRS_Hiscores import Hiscores

# User to lookup
username = 'Zezima'

# Initialize user object
user = Hiscores(username)

# Get the entire stat dictionary
user.stats

# Get a specific skill's ranking, level, and experience
user.stats['runecrafting']

# Get skill's level, ranking, and experience separately
user.stats['runecrafting']['level']
user.stats['runecrafting']['rank']
user.stats['runecrafting']['experience']

# A simpler way to just get a skill's level
user.skill('attack')

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

OSRS Hiscores-0.2.tar.gz (2.3 kB view details)

Uploaded Source

Built Distribution

OSRS_Hiscores-0.2-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file OSRS Hiscores-0.2.tar.gz.

File metadata

  • Download URL: OSRS Hiscores-0.2.tar.gz
  • Upload date:
  • Size: 2.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.7

File hashes

Hashes for OSRS Hiscores-0.2.tar.gz
Algorithm Hash digest
SHA256 b832f6fa493eefa84d334162f8014c3554c6b3c3f0196d8fbbb2b92a2065a488
MD5 300703181a6ff02b563d76bbee81209b
BLAKE2b-256 f234f92853216f808577522794679b91af3e759e714faeaeebae9969ee3d03b5

See more details on using hashes here.

Provenance

File details

Details for the file OSRS_Hiscores-0.2-py3-none-any.whl.

File metadata

  • Download URL: OSRS_Hiscores-0.2-py3-none-any.whl
  • Upload date:
  • Size: 3.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.7

File hashes

Hashes for OSRS_Hiscores-0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 82d98479ba61dd248178e0429cf371ded93d7679dcf2898f6ebd201076216142
MD5 0ee2afb7c4c00c7e7785b37df6e5efc3
BLAKE2b-256 5e50b793bb7f382ff928f2c001bc73a1e2c19148cd550b6c768b8e398968f05f

See more details on using hashes here.

Provenance

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