14 lines
449 B
Bash
14 lines
449 B
Bash
#!/bin/bash
|
|
###
|
|
## Usage: ./<script> <user> <password> <file with downloadlist>
|
|
##
|
|
## Note: Requires RS User account and setting "Direct Downloads" set to yes.
|
|
###
|
|
|
|
rapidshare_cookie=`wget -q -O - --post-data="sub=getaccountdetails&withcookie=1&login=$1&password=$2" https://api.rapidshare.com/cgi-bin/rsapi.cgi | grep cookie | cut -d= -f2`
|
|
|
|
for i in $( cat $3); do
|
|
wget --header="Cookie: enc=$rapidshare_cookie" $i
|
|
done
|
|
|
|
rapidshare_cookie="" |