Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mbilokonsky/lyrical

a tool for scraping song lyrics
https://github.com/mbilokonsky/lyrical

Last synced: about 1 month ago
JSON representation

a tool for scraping song lyrics

Awesome Lists containing this project

README

        

# How to Use

1. `npm install`
2. `npm run load_artist -- "artist name"`
3. Lyrics will be in the `lyrics/` folder.

# Notes

This uses various loaders for various lyric lookup sites. `lookup_azlyrics.js` seems to provide better values, but azlyrics will block your domain pretty quickly.

I've found that `lookup_all_the_lyrics.js` works pretty well. There's also a custom david bowie lyric loader. You can swap out which loader you use in `load_artist.js` if you want to experiment, and you can see how they work if you want to write a custom one for some other lyrics site.

There's other stuff coded in here, a crappy markov chain and a corpus builder, feel free to play with that if you want. The `build_corpus.js` file has hard-coded values that assume you've downloaded certain artist lyrics, you can play around with that to make it match your own uses.