Code Monkey home page Code Monkey logo

osrs-lib's Introduction

osrs-lib

Introduction

A Python library for interfacing to public OSRS assets. This library makes use of concurrent HTTP requests via asyncio and aiohttp.

Installation

pip install osrs-lib

Hiscores

The Old School Runescape public API rate limits requests and the exact rate limit is speculated. See Reddit thread for speculation. Confirmation on this information was denied form Jagex via support ticket. This library attempts to rate limit requests maxed at 100 instantaneous requests or 15 per minute. As this has not been confirmed by Jagex, keep in mind your IP may be temporarily blocked if you attempt to make bulk requests.

The hiscores module can be used to fetch a single user or bulk users OSRS hiscores data.

Get user(s) stats:

from osrs-lib import hiscores

username = ['Zezima']

stats = hiscores.get_stats(username)

Get username(s) via rank:

from osrs-lib import hiscores

rank = [100]

username = hiscores.get_usernames(rank)

osrs-lib's People

Contributors

shumatepf avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.