This repository has been archived on 2022-05-13. You can view files and clone it, but cannot push or open issues or pull requests.
2012-10-14 16:01:56 +02:00
|
|
|
#!/bin/bash
|
|
|
|
###
|
2012-10-18 22:20:30 +02:00
|
|
|
## Usage: ./<script> <user> <password> <file with downloadlist>
|
2012-10-14 16:01:56 +02:00
|
|
|
##
|
|
|
|
## 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
|
2012-10-18 22:20:30 +02:00
|
|
|
done
|
|
|
|
|
|
|
|
rapidshare_cookie=""
|