Shell script for downloading lyrics from lyrics.wikia.com

Jaidyn Levesque 28aac003d2 Switch from wikia to songlyrics.com 1 month ago
README.txt 28aac003d2 Switch from wikia to songlyrics.com 1 month ago
gendl 6fe26e1b75 Fix error with gendl 1 year ago
mp 65048635cd Added ARGUMENTS to mp 11 months ago
wydir 747a1ba236 Switch domain from 'wikia' to 'fandom' 1 month ago
wyrics 28aac003d2 Switch from wikia to songlyrics.com 1 month ago

README.txt

===============================================================================
WYRICS Git some lyrics
===============================================================================

Fetch lyrics for a song from songlyrics.com with this script.
You can fetch them by search queries, or by their URL.

This used to use lyrics.wikia.com, but that's defunct now. ;c



----------------------------------------
PRE-REQUISITES
----------------------------------------
You'll need:
* "gendl" in your $PATH
* a POSIX-compatible shell (tested with `pdksh` and `bash`)
* "curl", "wget", or "ftp" installed
* "lynx" installed



----------------------------------------
USAGE
----------------------------------------

WYRICS
--------------------
Just run "wyrics" like so:

wyrics -s "query"
wyrics -u page_url

If you use the "-u" option, the lyrics will just be printed to stdout.

If you decide to use "-s", though, search results'll be displayed to your
screen (via stderr)-- each numbered from 1-10.
Just type a number, hit enter, and the lyrics'll pop up.

$ wyrics -s "boston"
1 Boston
2 Sonny:We're Better Than Boston
3 Boston Manor:FY1
4 Boston Manor:Halo
5 Boston Manor:Wolf
6 Boston Manor:Stick Up
7 Boston Manor:If I Can't Have It No One Can
8 Boston Manor:Square One
9 Boston Manor:Driftwood
10 Boston Manor:Forget Me Not
>>


If you want to save lyrics to a file, you'll need to redirect the
output-- "wyrics -s 'bob' > BOB.txt"

--------------------


... however, I've also included some more scripts that'll help make wyrics
and listening to music with lyrics more convenient:


WYDIR
--------------------
Runs "wyrics" over every song in a directory of a given file-extension.
The lyrics are output to "$song.txt"

Just run "wydir" like so:

wydir file-ext [prefix]

file-ext should be the file-extension of songs in the current dir.
prefix should be a prefix to search results to help make them
more accurate-- like, for example, the band-name, the
album, etc.

This is really convenient if you wanna get the lyrics of an album in
one go. =w=


MP
--------------------
MP is a font-end to the music-player MPV.
What MP does, is that before a song is played, it tries to "cat" it's
lyrics file (assumed to be like "song.ogg.txt"), then executes MPV.

Since it executes MPV once for every song passed, you're probably wondering
how you could seek back or forward a song.

Normally you'd use "<" or ">", but with MP, just use CTRL-C and "Q".

The escape-code of CTRL-C (4) is caught by MP, and interpreted to mean you
wanna go back a song.

The regular escape-code of "Q" (0) is caught, and interpreted to mean you
want to skip to the next song.



----------------------------------------
BORING STUFF
----------------------------------------
License is CC-0 (though, "gendl" is GPLv3)
Author is Jaidyn Ann
Sauce is at https://git.eunichx.us/wyrics.git