Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/arttukuikka/hltvsharp
An unofficial C# API for scraping data from hltv.org
https://github.com/arttukuikka/hltvsharp
api csgo csharp dotnet hltv hltv-api hltv-csgo htmlscraper nuget
Last synced: 27 days ago
JSON representation
An unofficial C# API for scraping data from hltv.org
- Host: GitHub
- URL: https://github.com/arttukuikka/hltvsharp
- Owner: ArttuKuikka
- Created: 2022-03-01T22:43:18.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-11-07T11:59:22.000Z (about 1 year ago)
- Last Synced: 2024-10-05T16:10:52.568Z (about 1 month ago)
- Topics: api, csgo, csharp, dotnet, hltv, hltv-api, hltv-csgo, htmlscraper, nuget
- Language: C#
- Homepage:
- Size: 169 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# !!!UNMAINTAINED!!!
![logo](https://raw.githubusercontent.com/ArttuKuikka/HltvSharp/master/github_hltvsharp_logo.png)
# HltvSharp
# Nuget Package https://www.nuget.org/packages/HltvSharp/
Hltv is a C# api for getting Hltv info straight from hltv.org. HltvSharp uses mostly Html Agility Pack for parsing the site info and as of 14.3.2022 it should work correctly but i you find something wrong with it open a new issue or message me on discord Arttu#6180.
--Sample Code--
```
var SearchQuery = "ence";var Search = new HltvSharp.Search();
var res = await Search.Teams(SearchQuery);var team0 = HltvSharp.Parsing.HltvParser.GetTeam(res[0].Id);
Console.WriteLine(team0.Result.Name);
Console.WriteLine(team0.Result.Id);
Console.WriteLine(team0.Result.WorldRank);
Console.WriteLine(team0.Result.Players[0].Id);
var player0 = HltvSharp.Parsing.HltvParser.GetPlayer(team0.Result.Players[0].Id);
Console.WriteLine(player0.Result.Name);
```
The sample code should return the following output```
ENCE
4869
15
16080
Pawel 'dycha' Dycha
```