Skip to main content

A python library that functions as a HLTV API to use in your code

Project description

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

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

HLTV-0.2.0.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

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

HLTV-0.2.0-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file HLTV-0.2.0.tar.gz.

File metadata

  • Download URL: HLTV-0.2.0.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for HLTV-0.2.0.tar.gz
Algorithm Hash digest
SHA256 a8dd1809067df24f586fad40a818bb9e8a3ff8fceedcf9acdd6471e14c8cbf47
MD5 f2788666ebb698af4b45078ccdea57b0
BLAKE2b-256 f7db844adad84d164f840dc4a8994d49982aaaa72544a67ff01d1876247669eb

See more details on using hashes here.

File details

Details for the file HLTV-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: HLTV-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for HLTV-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 69e99fee4e314a9b50d4b2b80074a690f125101bf4310a8a66c6afb34f2b3369
MD5 eb8c60557ee3cd4cbfb20294a82d14f2
BLAKE2b-256 ce7740e8b14ab54191410d7e0047bebdafbb188a5d0dd9764f5286b795d19f8b

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