Giter VIP home page Giter VIP logo

rushwarsapi-python's Introduction

RushStatsAPI-Python

The simplest ever, clear-code, easy-to-use wrapper for RushStatsAPI (Rush Wars API) written in Python 3!

Requirements

  • OS: Windows / Linux / Android / MacOS
  • Python version: 3.x
  • Python modules: json, requests

Note

Because the project is just a script for now, it means you will have to manually download it and put the rushstats.py file into directory of your project you are going to use this wrapper in. Then you can simply import it as you are doing it with any other modules: import rushstats.

Authorization

To connect to the API you will need an access token. If you will try to retrieve any info without authorization, you will receive an error. So, if you still don't have any token, you can get a new one here: https://api.rushstats.com/dashboard
Then authenticate using this function (don't forget to replace token with your token): rushstats.session('token')

Retrieving information

All of the functions below are returning requested data as a Json object.

  • Information about player:
    rushstats.get_player('tag')
  • Information about team:
    rushstats.get_team('tag')
  • Searching teams by keyword:
    rushstats.team_search('keyword')
    (This will return only first 64 results beacause of in-game limit.)
  • Getting player leaderboard:
    rushstats.top_players(count)
    (A count argument here specifies how many players from the leaderboard will be returned. It should be an integer and should be equal to any number in range 0-200.)

rushwarsapi-python's People

Contributors

masterdevx avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  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.