genius_lyrics 1.0.1 copy "genius_lyrics: ^1.0.1" to clipboard
genius_lyrics: ^1.0.1 copied to clipboard

Dart native package inspired by LyricsGenius Python library. genius_lyrics provides a simple interface to the song, artist, and lyrics data stored on Genius.com.

example/main.dart

import 'package:genius_lyrics/genius_lyrics.dart';

void main(List<String> args) async {
  Genius genius = Genius(accessToken: YOUR_TOKEN);

  Artist? artist = await genius.searchArtist(
      artistName: 'Eminem', maxSongs: 5, sort: SongsSorting.release_date, includeFeatures: true);

  if (artist != null) {
    for (var song in artist.songs) {
      print(song.title);
    }
  }

  Album? album = (await genius.searchAlbum(name: 'The Off-Season', artist: 'J.Cole'));
  album?.saveLyrics(destPath: 'D:/Desktop/test');

  if (album != null) {
    print(album.tracks.length);
    for (var track in album.tracks) {
      print(track.title);
    }
  }

  Song? song = (await genius.searchSong(artist: 'J. Cole', title: 'KOD'));

  if (song != null) {
    print(song.lyrics);
  }
}
10
likes
140
pub points
47%
popularity

Publisher

unverified uploader

Dart native package inspired by LyricsGenius Python library. genius_lyrics provides a simple interface to the song, artist, and lyrics data stored on Genius.com.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

beautiful_soup_dart, http, universal_io

More

Packages that depend on genius_lyrics