Coder Social home page Coder Social logo

r37r0-gh057 / csgostats_rank_scraper Goto Github PK

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

Get player's avatar, name, current rank icon, best rank icon for using in your discord/tg/etc bots. OR just get current rank and best rank info in plain-text for local use.

License: MIT License

Python 100.00%

csgostats_rank_scraper's Introduction

csgostats_rank_scraper

Selenium PRs Welcome

Table of contents:

Introduction:

This script is made in python, which uses the selenium webdriver to scrape a player's competitive rank information from csgostats.

The script can be used in two ways:

  • You can get a player's Steam profile name, current rank icon URL, best rank icon URL for using in your discord/TG/etc bots.

OR

  • You can just get the current and best ranks information in plain-text for local usage.

Setup:

  • Install the required libs: pip install -r requirements.txt
  • Download the suitable webdriver according to your browser and version.
  • Write the full path to the webdriver binary in driver_path.txt.

Usage:

  • To run: python rank_scrape.py

How to load as module:

You can use it in your Discord or other bots by loading it as a module like this:

import rank_scrape

scraper = rank_scrape.rank_scraper(MODE=0,URL=steam_profile_url_here)

player_name, player_avatar_url current_rank_icon_url, best_rank_icon_url = scraper.run()

You will get the player's steam profile name, avatar image URL, current rank's icon URL, best rank's icon URL.

csgostats_rank_scraper's People

Contributors

r37r0-gh057 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.