Skip to content
Permalink
Browse files

+ val.az: lyrics fetcher

  • Loading branch information...
l29ah committed Nov 25, 2011
1 parent fa4c8cf commit ac68ff7ee38be9199197fc2297a48db9e3da39d3
Showing with 9 additions and 0 deletions.
  1. +9 −0 val.az/lyrics
@@ -0,0 +1,9 @@
#!/bin/bash
Xtract '*//div[@class="box"]/-' <(curl -s "http://val.az/$(
curl -s "http://val.az/search.php?q=$(printf "$1" | urlencode)&l=1" |
sed -n -e '/a href="lyrics\?/{s#.*href="\(lyrics\?[^"]*\)".*#\1#p;q}'
)" |
tidy -asxml 2>/dev/null
) |
htmldecode |
sed -n -e '4,${0~2p}'

0 comments on commit ac68ff7

Please sign in to comment.
You can’t perform that action at this time.