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
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#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
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
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 | Versions 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. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.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.
-
.NETCoreApp 3.1
- Fizzler.Systems.HtmlAgilityPack (>= 1.2.1)
- HtmlAgilityPack (>= 1.11.42)
- Newtonsoft.Json (>= 13.0.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.