GeniusLyrics.NET
1.0.0
dotnet add package GeniusLyrics.NET --version 1.0.0
NuGet\Install-Package GeniusLyrics.NET -Version 1.0.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="GeniusLyrics.NET" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add GeniusLyrics.NET --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: GeniusLyrics.NET, 1.0.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 GeniusLyrics.NET as a Cake Addin #addin nuget:?package=GeniusLyrics.NET&version=1.0.0 // Install GeniusLyrics.NET as a Cake Tool #tool nuget:?package=GeniusLyrics.NET&version=1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
GeniusLyrics.NET
a library that allows developers to interact with the Genius API. You can retrieve song information, scrape lyrics, and retrieve album art from the Genius platform. 🎶
Usage
Get one specific song and lyrics with title and artist name
var genius = new GeniusClient(yourApiKey);
var brooklynBaby = await genius.GetSong("Brooklyn Baby", "Lana Del Rey", true);
Console.WriteLine(brooklynBaby.FullTitle + "\n" + brooklynBaby.Lyrics);
// How many times baby appears at brooklyn baby ?
Console.WriteLine($"Baby appears: {Regex.Matches(brooklynBaby.Lyrics, "baby").Count}");
Get one song with the id
var songById = await genius.GetSongById(5138841);
Console.WriteLine(songById.FullTitle + "\n" + songById.Lyrics);
Get url of an album art
var albumArt = await genius.GetAlbumArt("rushing back", "flume");
// https://images.genius.com/e9031955f1346e634e1e3c701ba3a37e.1000x1000x1.jpg
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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net8.0
- HtmlAgilityPack (>= 1.11.61)
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.0.0 | 74 | 8/2/2024 |