Permalink
Browse files

+ beemp3.com search kludge

  • Loading branch information...
l29ah committed Aug 11, 2011
1 parent f7099b8 commit c1572eb23a64b40279bc5f5a3dfd26767edf0580
Showing with 10 additions and 0 deletions.
  1. +10 −0 beemp3.com/beefind
View
@@ -0,0 +1,10 @@
#!/bin/sh
# Usage: $0 "search terms"
p=1
a="`echo "gsom\ngsom"`" # beautify me
while [ `printf %s "$a" | wc -l` -gt 0 ]; do
a="$(curl -s "http://beemp3.com/index.php?q=`printf %s "$1" | urlencode`&p=$p" |
sed -ne 's#.*File: <.*href="\([^"]*\)".*#http://beemp3.com/\1#p')"
echo "$a"
p=$((p+1))
done

0 comments on commit c1572eb

Please sign in to comment.