Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/mbilokonsky/lyrical
- Owner: mbilokonsky
- Created: 2016-01-16T22:45:32.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-08-14T22:31:36.000Z (over 8 years ago)
- Last Synced: 2024-08-01T21:55:05.978Z (4 months ago)
- Language: JavaScript
- Size: 498 KB
- Stars: 2
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- project-awesome - mbilokonsky/lyrical - a tool for scraping song lyrics (JavaScript)
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.