Giter Site home page Giter Site logo

cantwont / r6_stats Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 23 KB

Python package dedicated to scraping player data for Rainbow 6: Siege

Home Page: https://pypi.org/project/r6-stats/

Python 100.00%
r6 siege stats trn api r6stats r6stats-api r6statsfinder scraper

r6_stats's Introduction

R6_Stats

Easily grab player stats for the game Rainbow 6: Siege https://pypi.org/project/r6-stats/

Table of Contents

Getting Started

R6_Stats is a simple Python package aimed to get player stats for any platform in just a simple function. This project is still a work-in-progress (WiP) so expect bugs. Please open an issue so I can fix any errors!

Prerequisites

pip install requests
pip install beautifulsoup4
pip install lxml

Installation

This will be shortened in the future as I still have some debugging to do

pip install r6_stats

Usage

from r6_stats import *

platform = 'pc'
username = 'Spoit.M80'

print(get_profile_views(platform, username))
# 2833937


print(get_profile_level(platform, username))
# 522


print(get_season_info(platform, username))
# {'Heavy Mettle': {'MMR': '2,131', 'Matches': 'Matches 28', 'KD': 'K/D 0.80'}}
# (Spoit's season info was too long so I used mine ๐Ÿ˜‚)


print(get_rank_image('CHAMPION'))
# https://imgur.com/Q5Qpcmt.png


print(get_general_stats(platform, username))
# {
#     "Headshot %": "61%",
#     "K/D": "1.73",
#     "Kills": "90,635",
#     "Deaths": "52,242",
#     "Wins": "10,332",
#     "Losses": "2,856",
#     "Win %": "74.4%",
#     "Time Played": "3,897h",
#     "Matches Played": "13,882",
#     "Player Level": "522",
# }


print(get_ranked_stats(platform, username))
# {
#     "Time Played": "3,551h 57m 9s",
#     "Wins": "9,212",
#     "Losses": "2,500",
#     "Matches Played": "11,718",
#     "Deaths": "46,482",
#     "Kills": "78,303",
#     "Win %": "78.6%",
#     "K/D": "1.68",
#     "Kills/Match": "6.68",
#     "Kills/Min": "0.37",
#     "Current Rank": "CHAMPION",
#     "Player Level": "522",
# }

r6_stats's People

Contributors

cantwont avatar

Stargazers

 avatar

Watchers

 avatar

r6_stats's Issues

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.