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 Valorant-Pro-API

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.2.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.2-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: valorantproapi-1.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 1b0fbb1c0df7d8fd47f1805ac2836d3aee8634c08a8c2f42f8b70192da8460e8
MD5 ae97fe669a649e531db77f70f56416c8
BLAKE2b-256 5afa4d3221fa18878d41f653943d9a390142ac776f2bf4e5fd5e84cb96a9aad8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: valorantproapi-1.1.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 45338cbead05cc1804a80ff2b7aaf6d8e8563c3258b318168df8136b1fc54181
MD5 12420e71cfacf65e52244821e3c97967
BLAKE2b-256 e87d26b68de4534061b829abccbb3fbce6d2f9152ba0f1fc4a4fbb3595a6b54e

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