Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/richecr/hltvgo
https://github.com/richecr/hltvgo
counter-strike cs cs2 csgo golang hacktoberfest hacktoberfest-accepted hltv python3
Last synced: about 4 hours ago
JSON representation
- Host: GitHub
- URL: https://github.com/richecr/hltvgo
- Owner: richecr
- License: bsd-3-clause
- Created: 2023-09-30T20:07:43.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-11-15T01:59:20.000Z (about 1 year ago)
- Last Synced: 2024-06-20T22:22:42.560Z (5 months ago)
- Topics: counter-strike, cs, cs2, csgo, golang, hacktoberfest, hacktoberfest-accepted, hltv, python3
- Language: Go
- Homepage:
- Size: 22.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# hltvgo - This is an unofficial library of hltv.org (Under development)
Table of contents
- [Usage](#usage)
- [SDKs](#sdks)
- [Go to Python](#go-to-python)
- [Generate package Python](#generate-package-python)
- [Generate dist](#generate-dist)
- [Install local (test)](#install-local-test)
- [Uninstall local (test)](#uninstall-local-test)## Usage
A library written in Go with the aim of allowing the extraction of information from the https://www.hltv.org/ website.
:warning: **WARNING:** This is an unofficial library and if it is used in a way that breaks hltv.org rules, your account may be banned or your IP blocked by Cloudflare protection.
Our intention is to write in Go and create an SDK for other programming languages, the first will be python as it has an easy way to convert to a Python library using gopy.
## SDKs
- [Python SDK](hltv_sdk/README.md)
## Go to Python3
#### Generate package Python
```sh
gopy pkg -name=hltvsdk -author="Rich Ramalho" -email="[email protected]" -desc="The unofficial HLTV Python API" -url="https://github.com/richecr/hltvgo" -output=hltv_sdk -vm=python3 github.com/richecr/hltvgo github.com/richecr/hltvgo/lib/api github.com/richecr/hltvgo/lib/operations github.com/richecr/hltvgo/lib/entity
```#### Generate dist
```sh
python setup.py bdist_wheel
```To publish to PyPi you need to use this command:
```sh
python -m build
```#### Install local (test)
```sh
wheel_file=$(ls dist/*.whl | head -n1); pip install $wheel_file
```#### Uninstall local (test)
```sh
wheel_file=$(ls dist/*.whl | head -n1); pip uninstall $wheel_file
```