Skip to main content

A python library to retrieve data from pro matches of valorant registered on the site https://vlr.gg/.

Project description

Valorant-Pro-API

Presentation

A python library to retrieve data from pro matches of valorant registered on the site https://vlr.gg/.


Installation

Step 1 :

Create a new environment with conda or venv.

Step 2 :

Install the dependencies :

pip install beautifulsoup4, requests

Step 3 :

Install it with pip :

pip install valorantproapi

Usage

data.get_events() (Function)

Use it to retrieve all the event's id and name from https://vlr.gg/


data.Event (Class)

This is the class of an event. To call it, you need the event id.

Example to retrieve data from Champions Tour 2024: EMEA Stage 1 :

data.Event("1998")

data.Event.id

To get the event id.


data.Event.name

To get the event name.


data.Event.matches

To get the match's id of the event.


data.Match (Class)

This is the class of a match. To call it, you need the match id.

Example to retrieve data from BBL Esports VS Gentle Mates :

data.Match("318917")

data.Match.id

To get the match id.


data.Match.winner

To get the match winner.


data.Match.rounds

To get the round's id of the match.


data.Match.team_a.name

To get the name of team A.


data.Match.team_a.score

To get the score of team A.


data.Match.team_b.name

To get the name of team B.


data.Match.team_b.score

To get the score of team B.


data.Round (Class)

This is the class of a round. To call it, you need the round id and the match id.

Example to retrieve data from BBL Esports VS Gentle Mates Round 1 :

data.Round("164106", "318917")

data.Round.id

To get the round id.


data.Round.match_id

To get the match id.


data.Round.map

To get the map of the round.


data.Round.winner

To get the winner of the round.


data.Round.team_a.name

To get the name of team A.


data.Round.team_a.score

To get the score of team A.


data.Round.team_a.player_{1 to 5}

This is the player of the team under a form of class.


data.Round.team_b.name

To get the name of team B.


data.Round.team_b.score

To get the score of team B.


data.Round.team_b.player_{1 to 5}

This is the player of the team under a form of class.


data.Player (Class)

This is the class of a player. You don't need to call it, it's in data.Round.team_{a or b}.player_{1 to 5}.


data.Player.name

To get player name.


data.Player.country

To get player country.


data.Player.agent

To get player agent.


data.Player.stat

To get the stats.


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

valorantproapi-1.1.3.tar.gz (7.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

valorantproapi-1.1.3-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

Details for the file valorantproapi-1.1.3.tar.gz.

File metadata

  • Download URL: valorantproapi-1.1.3.tar.gz
  • Upload date:
  • Size: 7.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for valorantproapi-1.1.3.tar.gz
Algorithm Hash digest
SHA256 95da12be26d4f1ea2c1eef2b067001ef7edc1f31f94aedd592d0c9e654569239
MD5 82c0b2ce374b097c49b519baa64ed388
BLAKE2b-256 26a27928e9535dc419e426eec65f0a3b0c75d1e25f830041052b8c2e1483fb50

See more details on using hashes here.

File details

Details for the file valorantproapi-1.1.3-py3-none-any.whl.

File metadata

  • Download URL: valorantproapi-1.1.3-py3-none-any.whl
  • Upload date:
  • Size: 8.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for valorantproapi-1.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 2405c62c8847b9de3690f90fedaf6d05db035effe3f7e6ab86e7d8e53c37926a
MD5 4a7e11254936947b4459467b7fe1714d
BLAKE2b-256 9fb87d9c2a422d00fb9b2752c185ec0d68d2a3c6c2d1b0c440f852a32097b895

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page