HltvSharp 1.11.0

dotnet add package HltvSharp --version 1.11.0
NuGet\Install-Package HltvSharp -Version 1.11.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="HltvSharp" Version="1.11.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add HltvSharp --version 1.11.0
#r "nuget: HltvSharp, 1.11.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install HltvSharp as a Cake Addin
#addin nuget:?package=HltvSharp&version=1.11.0

// Install HltvSharp as a Cake Tool
#tool nuget:?package=HltvSharp&version=1.11.0

logo

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
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp3.1 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.11.0 1,242 7/5/2022
1.10.0 871 4/7/2022
1.9.0 857 4/5/2022
1.8.0 870 3/30/2022
1.6.0 848 3/23/2022
1.3.0 844 3/23/2022
1.2.0 867 3/23/2022
1.1.0 847 3/6/2022
1.0.0 857 3/2/2022