readersplanet-dl/readersplanet-dl.sh

22 lines
450 B
Bash
Raw Permalink Normal View History

2014-06-26 08:37:09 +00:00
#!/bin/sh
VAR=1511
while true; do
echo "$VAR"
curl --cookie "osCsid=8a497efe811cfd788283cb087ebd195d" "http://www.readerserver.de/download.php?aboload=true&id=$VAR" > $VAR.pdf
if [ `file --brief --mime-type $VAR.pdf` != "application/pdf" ]; then
echo "no pdf"
#exit
fi
VAR=$(($VAR+1))
done
#osCsid=Host: .www.readerserver.de
#Name: osCsid
#Value: 8a497efe811cfd788283cb087ebd195d
#Path: /
#Secure: No
#Expires: At the end of the session