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-12-06 21:34:03 +01:00
|
|
|
##
|
|
|
|
## "wget" for RapidShare
|
|
|
|
## by MadMakz
|
|
|
|
##
|
|
|
|
## http://madmakz.com/
|
|
|
|
##
|
|
|
|
## This program is free software: you can redistribute it and/or modify
|
|
|
|
## it under the terms of the GNU General Public License version 3 as published by
|
|
|
|
## the Free Software Foundation.
|
|
|
|
##
|
|
|
|
## This program is distributed in the hope that it will be useful,
|
|
|
|
## but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
## GNU General Public License for more details.
|
|
|
|
##
|
|
|
|
## You should have received a copy of the GNU General Public License
|
|
|
|
## along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
##
|
|
|
|
###
|
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=""
|