Skip to content

An automated script to fetch and analyze upcoming CS2 matches from HLTV🦉

License

Notifications You must be signed in to change notification settings

netistul/HLTV-Match-Fetcher

Repository files navigation

HLTV-Match-Fetcher

An automated script to fetch and analyze upcoming CS2 matches from HLTV. The script uses the HLTV API to gather data, performs analysis, and saves the results to Azure Blob Storage. 🦉

Frontend

The frontend for this project is a Chrome extension that reads the match data from the JSON file generated by the backend. It is hosted in a separate repository: HLTV-Chrome-Extension.

Developer's Guide 🛠️

To use this script, follow these steps:

  1. Clone the Repository:
    git clone https://github.com/netistul/HLTV-Match-Fetcher.git
  2. Install Dependencies:
    npm install
  3. Transpile TypeScript to JavaScript:
    tsc
  4. Run the Script:
    node lib/hltvMatchFetcher.js

This will execute hltvMatchFetcher.ts after it's been transpiled to JavaScript. The script fetches upcoming CS:GO matches from HLTV, retrieves and caches team logos, calculates the time until each match, and saves the compiled data as a JSON file. It then uploads this JSON file to Azure Blob Storage for further usage.


Setting Up Credentials 🔑

Before running the script, you'll need to set up your Azure Blob Storage credentials. Here's how:

Environment Variables

  1. Create a .env file at the root directory of your project.

  2. Inside the .env file, set the following variables:

    AZURE_ACCOUNT_NAME=your_azure_account_name
    AZURE_ACCOUNT_KEY=your_azure_account_key

    Replace your_azure_account_name and your_azure_account_key with your actual Azure Blob Storage account name and key.

About

An automated script to fetch and analyze upcoming CS2 matches from HLTV🦉

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published