Permalink
Browse files

+ flibusta.net: mass downloader

Signed-off-by: Sergey Alirzaev <zl29ah@gmail.com>
  • Loading branch information...
stiletto authored and l29ah committed Dec 17, 2011
1 parent ac68ff7 commit 6f6f015464c642b322ec1b5d171ee8946df65c34
Showing with 10 additions and 0 deletions.
  1. +10 −0 flibusta.net/flibusta-massdownload
@@ -0,0 +1,10 @@
#!/bin/sh
# Example: ./flibusta-massdownload http://flibusta.net/a/20828
curl "$@"|grep -Eo '/b/[0-9]+/fb2'|awk '{print "http://flibusta.net"$0}'|while read x; do
#a=$(($RANDOM/1000+1))
#echo "Sleeping for $a seconds."
#sleep "$a"
sturl="$(curl -i "$x"|awk '/^Location: .*/ {print $2}'|tr -d '\r\n')"
echo "Getting $sturl"
wget "$sturl"
done

0 comments on commit 6f6f015

Please sign in to comment.