DmrScraper.NET
1.1.1
dotnet add package DmrScraper.NET --version 1.1.1
NuGet\Install-Package DmrScraper.NET -Version 1.1.1
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="DmrScraper.NET" Version="1.1.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="DmrScraper.NET" Version="1.1.1" />
<PackageReference Include="DmrScraper.NET" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add DmrScraper.NET --version 1.1.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: DmrScraper.NET, 1.1.1"
#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.
#:package DmrScraper.NET@1.1.1
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=DmrScraper.NET&version=1.1.1
#tool nuget:?package=DmrScraper.NET&version=1.1.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
DmrService
Overview
The DmrService is a .NET library designed to facilitate the retrieval of detailed vehicle information based on various search criteria such as registration number, VIN, or vehicle ID. This service utilizes external web services to gather and parse vehicle data, offering a convenient interface for .NET applications.
Features
- Retrieve vehicle details asynchronously.
- Search by registration number, VIN, or vehicle ID.
- Customize search behavior with
DmrServiceOptions. - Extendable to include additional search sheets.
Getting Started
Usage
- Initialize the
DmrServicewith anHttpClientinstance. - Call
GetDetailsAsyncwith the appropriate parameters to retrieve vehicle details.
Example
using DmrScraper;
IDmrService dmrService = new DmrService(new HttpClient());
DetailsResult? details = await dmrService.GetDetailsAsync(searchString: "AA11111", SearchCriteria.RegistrationNumber, AdditionalSearchSheets.All, new DmrServiceOptions() { IncludeEmptyValues = true });
if (details == null)
{
Console.WriteLine("No details found");
}
else
{
// Console.WriteLine();
// Console.WriteLine("All details:");
// Console.WriteLine();
// foreach (var (key, value) in details.GetAllCombined())
// {
// Console.WriteLine($"{key}: {value}");
// }
Console.WriteLine();
Console.WriteLine("Vehicle details:");
Console.WriteLine();
foreach (var (key, value) in details.Vehicle)
{
Console.WriteLine($"{key}: {value}");
}
Console.WriteLine();
Console.WriteLine("Technical information:");
Console.WriteLine();
foreach (var (key, value) in details.TechnicalInformation)
{
Console.WriteLine($"{key}: {value}");
}
Console.WriteLine();
Console.WriteLine("Inspection details:");
Console.WriteLine();
foreach (var (key, value) in details.Inspection)
{
Console.WriteLine($"{key}: {value}");
}
Console.WriteLine();
Console.WriteLine("Insurance details:");
Console.WriteLine();
foreach (var (key, value) in details.Insurance)
{
Console.WriteLine($"{key}: {value}");
}
}
Console.WriteLine("Press any key to exit...");
Console.ReadKey();
// ---- RESULT ----
//
// Vehicle details:
//
// Stelnummer: VF7NC9HR8CY544509
// M�rke, Model, Variant: CITRO�N, C4 VAN, EHDI 110
// Art: Varebil
// Seneste �ndring: d. 28-11-2018
// Registreringsnummer: AA11111
// F�rste registrerings­dato: 20-04-2012
// Anvendelse: Godstransport erhverv
// Seneste �ndring: Afmeldt almindeligt d. 28-11-2018
// ... (additional fields)
//
// Technical information:
//
// V�gt.Teknisk totalv�gt: 1820
// V�gt.Totalv�gt: 1820
// V�gt.Egenv�gt: -
// V�gt.K�reklar v�gt.Minimum: 1448
// V�gt.K�reklar v�gt.Maksimum: -
// V�gt.V-v�rdi ved luftaffjedring: -
// V�gt.V-v�rdi ved mekanisk affjedring: -
// V�gt.Vogntogsv�gt: -
// V�gt.Skammel belastning: -
// ... (additional fields)
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. 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. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net8.0
- HtmlAgilityPack (>= 1.11.59)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.