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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

Supported by

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