Skip to main content

This python library functions as an HLTV API to extract, parse, and format data from HLTV.org. This library allows for real time data extraction to use in your code. This library is still in its beta stages and is being rapidly updated/altered with new features still being added/adjusted.

Installation

pip install HLTV

Dependencies

pip install bs4

pip install lxml

Usage

Importing

from HLTV import *

FUNCTIONS

get_live_matches()
    returns a list of all LIVE matches on HLTV along with the maps being played and the star ratings

get_upcoming_matches()
    returns a list of all upcoming matches on HLTV

get_important_upcoming_matches(star_rating=1)
    returns a list of all upcoming matches on HLTV with the star rating argument (should be between 0 and 5)

get_match_results(offset=0)
    returns a list of results from past 100 matches on HLTV starting from the offset param

get_important_match_results(star_rating=1, offset=0)
    returns a list of 100 past matches on HLTV with or above the star rating param starting from the offset

get_top_teams()
    returns a list of the top 30 teams

get_best_players(time_filter=30)
    returns a list of the top players within a certain time frame (ex: 30 days ago until today)

Uninstallation

pip uninstall HLTV

Metadata

Release files for HLTV 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for HLTV 0.2.0
File Size Uploaded Provenance Actions
HLTV-0.2.0.tar.gz 3.4 kB Without provenance Details for HLTV-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for HLTV 0.2.0
File Interpreter ABI Platform Actions
HLTV-0.2.0-py3-none-any.whl Python 3 none any Details for HLTV-0.2.0-py3-none-any.whl

Total release size: 7.8 kB

Release files / HLTV-0.2.0.tar.gz

Download URL HLTV-0.2.0.tar.gz
Size 3.4 kB
Tags Source
SHA-256 checksum
How to use checksums
a8dd1809067df24f586fad40a818bb9e8a3ff8fceedcf9acdd6471e14c8cbf47
BLAKE2b-256 checksum
How to use checksums
f7db844adad84d164f840dc4a8994d49982aaaa72544a67ff01d1876247669eb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.3

Release files / HLTV-0.2.0-py3-none-any.whl

Download URL HLTV-0.2.0-py3-none-any.whl
Size 4.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
69e99fee4e314a9b50d4b2b80074a690f125101bf4310a8a66c6afb34f2b3369
BLAKE2b-256 checksum
How to use checksums
ce7740e8b14ab54191410d7e0047bebdafbb188a5d0dd9764f5286b795d19f8b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.3

Security for HLTV 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page