wtorek, 29 stycznia 2008

[EN] Rapidshare.com download manager for linux users with Premium Account

##########################################
If you have "Status: Target server unavailable"...
# modrapi relogin <- it should work again :)
RS made some changes with session i think
##########################################

modrapi
is a linux commandline downloader for users of rapidshare.com that have premium account.

modrapi functionality:
- links storage
- import from a webpage
- import from a file
- manual link add
- download bandwitch limiter
- free disk space checker - modrapi block download when there is not enough space
- duplicate blocker

how to install

download tar archive from here
unpack it into /usr/bin
$ chmod a+x /usr/bin/modrapi
$ modrapi configure
full help in english (stable)
$ modrapi -h
License
GPL

If you are using modrapi - please leave me a comment - i only want to know that this program is helpful to You

if you will find some bugs - report them in comments of this post

HERE - jabber (XMPP) client for modrapi

Chengelog

Direct-downloads must be enabled in rapidshare.com options!

sorry for my english ;)

87 komentarzy:

AsAChild pisze...

Check out RSConsole:
http://www.addedworth.com/rsconsole.php
Automatic Download Accelerator and Scheduler for Rapidshare.com Premium Account, no direct downloads needed.

srt pisze...

Great script, very simple setup and does it's job. It would be nice though if you could add some output for the percentage complete, time elapsed etc, just to show that it works

m0d pisze...

srt - mission accomplished ;)

download latest version -> 1.1
and remember to
$ modrapi configure
after update -> see the changelog

srt pisze...

Alright! Thank you very much

c0rtex pisze...

hi your script works like a charm. is there any way to have it download all links at the same time opposed to one file after the other ?

great work !

shiny pisze...

Hi,

After checking a dozen of solutions for my new file/download server (and even installing X to try d4x, bleh!) I conclude that your little script is way ahead the competition, and saved me a lot of time which I'd spend hacking my own wget wrapper. You have a beer from me when I come to Pland.
Anyway, the only feature I miss is the ability of script to fork to background, so it's not tied to the tty it was called from. That way it could be controlled by using commandline params only.
Great work, again! I like it so much, I might spare some time and write a web interface for it, since it's so nicely organized and well thought!
PS. Actually, I'll wait a few days to see how it behaves in real life. Still waiting for first file to be completed :) Cheers!

shiny pisze...

Actually, my downloads get strange names, like AYR10G~X. It'll be a mess by tomorrow... :?

shiny pisze...

OK, found the problem. (BTW sorry for spamming the board). Somehow I have one additional (unknown) character at the end of $FILE_NAME. So bash prints the question mark (like "a4o-nanny-xvid.part4.rar?"), konqueror prints a rectangle, and windows explorer randomizes the whole filename (like "AIRQPI~Q").
This line of code looks suspicious:
FILE_NAME=${FILE_NAME//\Ã/x}
What is it supposed to do?

m0d pisze...

@shiny - im waiting for your visita nd beer ;)

FILE_NAME=${FILE_NAME//\Ã/x}

this line is "string replace"
\Ã -> its "x" encoded as entity

every "Ã" is changed to "x" in filename

send me those links via email 6b2d84326873fa@gmail.com - i will check it out

use screen to background work
$ screen
$ modrapi download
CTRL+A+D to detach

to resume:
$ screen -r

m0d pisze...

@c0rtex

soon ;)

shiny pisze...

hi, have you checked you inbox (or spam folder)? I have send you some mails yesterday.

m0d pisze...

version 1.2 released
- fixed problem with files created in MS Windows
- added automatic resume

m0d pisze...

ive forget to say that the problem was with import option (import from files created in MS)

Malte pisze...

Hi,

thanks for this script. Finally, a rapidshare manager usable with Linux :)
I really enjoy it, now I don't have to spend hours stupidly clicking around anymore!

A few suggestions...

1. You should REALLY tell users more explicitly that they HAVE to activate direct downloads. Because I personally didn't know. I found a link to your script elsewhere (direct link to rapidshare) and so I didn't read that information here.

I spent 1-2 hours to figure out why your script always told me that my session data was invalid, until I finally realized it could possibly only work if there was something like a direct download option on rapidshare, so I figured maybe there was something like that in the rapidshare options. I went to the premium zone and actually found it there.
After all that I went here and read that you should activate direct downloads, which by then I had figured out myself. Had I read it before, it would have saved me a lot of work. So in line 408:
echo " >> Login and Password to rapidshare looks like invalid! "
You might want to add something like:
echo "Did you activate direct downloads on rapidshare?"

You could also write this in the help text printed by "modrapi -help"

2. Actually for me to work, I had to do another modification. In $HOME/.modrapi/modrapi.cfg, I had to change
RAPIDSHARE_LOGIN_URI="http://rapidshare.com/cgi-bin/"
RAPIDSHARE_LOGIN_FILE="premium.cgi"

to

RAPIDSHARE_LOGIN_URI="https://ssl.rapidshare.com/cgi-bin/"
RAPIDSHARE_LOGIN_FILE="premiumzone.cgi"

Also, in line 272 I had to change
wget --save-cookies=$MODSES -q --post-data="accountid=$L&password=$P&premiumlogin=1" $H$F -O $LF
to
wget --save-cookies=$MODSES -q --post-data="login=$L&password=$P" $H$F -O $LF

Because otherwise I got invalid login too. So it looks like they've changed the form... or at least, for me it's a different one.

3. It would be great if your script supported parallel downloads. Wouldn't it be possible that you fork downloads to the background and begin a new one right away? :-)
Then you could also add an option like "max. parallel downloads" or so. That would be fantastic!

Again, thank you so much for your script!

Cheers

Malte

m0d pisze...

@Malte thx for your info

"echo "Did you activate direct downloads on rapidshare?""

> ive made that (exactly the same txt) but i am watching my code right now and i think i ve forget to save it :>

"You could also write this in the help text printed by modrapi -help"

> i will


"parallel downloads"

> i will do that but i dont have time right now

im a webdeveloper (freelancer) so i must do my job in the first place... ($)

when i will have a few days of break - i will do that

"http://rapidshare.com/cgi-bin/ vs https://ssl.rapidshare.com/cgi-bin/"

> wired thing - booth works for me
i will set https://ssl.rapidshare.com/cgi-bin/ as a default

everything will be done in ver. 1.3

thx again

Anonimowy pisze...

Thank you very much for your script. I used to use rapget under wine but i was disappointed due to its crashes. I really like your job and I am looking forward to the implementation of the parallel downloads. Keep up the good work!

Anonimowy pisze...

Hi,
Thanks for the script. it's working great. Had been trying to make rapidshare manager work with wine for hours, but with no success.

Anonimowy pisze...

Hai, i'am using your script for a day now, i noticed that if a download failed, it will be tag as downloaded. Should'nt be tag as unfinished? and will be tried to download it some other time?

Here is one:
-------------------
Resolving rs182cg.rapidshare.com... 82.129.39.183
Connecting to rs182cg.rapidshare.com|82.129.39.183|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 74,408,006 (71M) [application/octet-stream]

5% [> ] 4,060,192 21.63K/s ETA 29:48

18:49:22 (38.42 KB/s) - Connection closed at byte 4060192. Retrying.

--18:49:23-- http://rs182cg.rapidshare.com/files/53529978/trial.rar%0D
(try: 2) => `/home/guest/Download/trial.rar
Connecting to rs182cg.rapidshare.com|82.129.39.183|:80... failed: Connection refused.
Resolving rs182cg.rapidshare.com... 82.129.39.183
Connecting to rs182cg.rapidshare.com|82.129.39.183|:80... failed: Connection refused.
Status: Downloaded
---------------
end of result

Thanks.

Jon pisze...

Hi!

I've tried both default and changed the same as malte. See below


$ modrapi download
---
Downloading file: caseyscam_i.zip
-> Resume mode
--10:42:05-- http://rapidshare.com/files/47857664/caseyscam_i.zip
=> `/home/jon/new2/caseyscam_i.zip.downloading'
Resolving rapidshare.com... 195.122.131.12, 195.122.131.13, 195.122.131.14, ...
Connecting to rapidshare.com|195.122.131.12|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 3,970 (3.9K) [text/html]

100%[=================================================================================================================>] 3,970 4.76K/s

10:42:12 (4.76 KB/s) - `/home/abc/new2/caseyscam_i.zip.downloading' saved [3970/3970]


------------------------
Relogin in progress
-----------------------


/home/abc/.modrapi/modrapi.login
/usr/bin/modrapi: line 285: [: -eq: unary operator expected

>> Login and Password to rapidshare looks like invalid!

Try ./modrapi.sh configure



Jon

Jon pisze...

Hi,

I've tried default and changed the same as malte. See below

$ modrapi download
---
Downloading file: caseyscam_i.zip
-> Resume mode
--10:42:05-- http://rapidshare.com/files/47857664/caseyscam_i.zip
=> `/home/jon/new2/caseyscam_i.zip.downloading'
Resolving rapidshare.com... 195.122.131.12, 195.122.131.13, 195.122.131.14, ...
Connecting to rapidshare.com|195.122.131.12|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 3,970 (3.9K) [text/html]

100%[=================================================================================================================>] 3,970 4.76K/s

10:42:12 (4.76 KB/s) - `/home/jon/new2/caseyscam_i.zip.downloading' saved [3970/3970]


------------------------
Relogin in progress
-----------------------


/home/jon/.modrapi/modrapi.login
/usr/bin/modrapi: line 285: [: -eq: unary operator expected

>> Login and Password to rapidshare looks like invalid!

Try ./modrapi.sh configure

$

Jon

Jon pisze...

Hi,

I've tried default and changed the same as malte. See below

$ modrapi download
---
Downloading file: caseyscam_i.zip
-> Resume mode
--10:42:05-- http://rapidshare.com/files/47857664/caseyscam_i.zip
=> `/home/jon/new2/caseyscam_i.zip.downloading'
Resolving rapidshare.com... 195.122.131.12, 195.122.131.13, 195.122.131.14, ...
Connecting to rapidshare.com|195.122.131.12|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 3,970 (3.9K) [text/html]

100%[=================================================================================================================>] 3,970 4.76K/s

10:42:12 (4.76 KB/s) - `/home/jon/new2/caseyscam_i.zip.downloading' saved [3970/3970]


------------------------
Relogin in progress
-----------------------


/home/jon/.modrapi/modrapi.login
/usr/bin/modrapi: line 285: [: -eq: unary operator expected

>> Login and Password to rapidshare looks like invalid!

Try ./modrapi.sh configure

$

Jon

m0d pisze...

Jon

Direct-downloads must be enabled in rapidshare.com options!

Jon pisze...

I need to add --no-check-certificate, because my wget is compiled without SSL support.

m0d pisze...

That was a question like "where to add" or you know where? ;)

Jon pisze...

Oops! sorry its seems like is has two meening. LOL!

I have added at line 287 the --no-check-certificate, because when i tried to remove the -q (QUIET MODE) it gives me the error message " ERROR: Certificate verification error for ssl.rapidshare.com: self signed certificate in certificate chain"
then i add that one and it works now.

Thanks for your wonderful scripts

smeal pisze...

great

thank you very much for this nice script

best regards

Fernando pisze...

I added a ShowQueue() function into my modrapi:

http://pastebin.ca/1037378

Anonimowy pisze...

BEST WAY TO LEGALLLY OWN A RAPIDSHARE 1 year PREMIUM ACCOUNT.

Follow these steps:
1. Create a paypal PREMIUM Account at this address. It is free;

http://www.paypal.com

When asked for credit card details simply say cancel. You do not need to fill it.

2.Then go to the following link;
http://www.AWSurveys.com/HomeMain.cfm?RefID=ronit123

Join this site. It is also free. You get paid for completing surveys over there 6$ to 4$ dollars per survey and 1.25$ per referral thats a lot of cash .

4.. Another thing you can also use paypal money to buy stuff on ebay and other shopping sites

5. Thats is it. So Simple and I swear it works.

I learnt this from another friend and i thought it will be good for my friends here. So I thought of helping

Gabriel pisze...

Hey,

I get this:

gabriel@gabriel-laptop:~$ modrapi file /home/gabriel/Desktop/RS
Import: 16 link(s) imported
gabriel@gabriel-laptop:~$ modrapi download
---
Downloading file: ABRAZOS.part1.rar
Status: Target server unavailable
---
Downloading file: ABRAZOS.part2.rar
Status: Target server unavailable
---
Downloading file: ABRAZOS.part3.rar
Status: Target server unavailable
---
Downloading file: ABRAZOS.part4.rar
Status: Target server unavailable
---
Downloading file: ABRAZOS.part5.rar
Status: Target server unavailable
---
Downloading file: ABRAZOS.part6.rar
Status: Target server unavailable
---
Downloading file: ABRAZOS.part7.rar
Status: Target server unavailable
---
Downloading file: ABRAZOS.part8.rar
Status: Target server unavailable
---
Downloading file: Si_Sos_Brujo.part1.rar
Status: Target server unavailable
---
Downloading file: Si_Sos_Brujo.part2.rar
Status: Target server unavailable
---
Downloading file: Si_Sos_Brujo.part3.rar
Status: Target server unavailable
---
Downloading file: Si_Sos_Brujo.part4.rar
Status: Target server unavailable
---
Downloading file: Si_Sos_Brujo.part5.rar
Status: Target server unavailable
---
Downloading file: Si_Sos_Brujo.part6.rar
Status: Target server unavailable
---
Downloading file: Si_Sos_Brujo.part7.rar
Status: Target server unavailable
---
Downloading file: Si_Sos_Brujo.part8.rar
Status: Target server unavailable


HELP? What do I do wrong?

m0d pisze...

Gabriel:
line ~ 438
rm $FILE_AFTER >/dev/null 2>&1
make:
#rm $FILE_AFTER >/dev/null 2>&1

start download
in your download directory will be new file with name similar to file from queue

send mi one to 6b2d84326873fa@gmail.com

m0d pisze...

http://rapidshare.com/files/122032410/modrapidebug.tar.gz
use: modrapidebug download

paste me output from download process

Anonimowy pisze...

Is to possible to download more than file file at the same time ?? If it is please tell me how to do that :)

Anonimowy pisze...

Eh.. sorry for my english
My question:
Is it possible to download a few files in the same time ? If it can be done please send me a clue how to do that.

m0d pisze...

not yet, paralel downloads will be possible in next release

i dont have time right now to do that

next release will be ready in August / September

be patient

JLS pisze...

Hey! Great tool ;)

There is however, one probleme that I am having.

As you know, rapidshare has a daily download limit. What happens is that, when you eventually reach it, modrapi still tries to download the files, which it can't. This ends up clearing up the entire list, when every single download fails.

What I suggest is basicaly this:

- Have it detect the "You have exceeded the download limit" message
- Stop downloading
- Recheck, in regular intervals, if the message still appears
- And then resume the downloads

nnnww pisze...

Hi. I have the same problem as gabriel: it keeps coming up with target server unavailable error. I have tried your modrapidebug version but still does not work. Here is the output:

warrd@warrd:~/Desktop$ sudo modrapi add http://rapidshare.com/files/101290881/modrapi-1.2.tar.gz
Import: 1 link imported
warrd@warrd:~/Desktop$ sudo modrapi download
---
Downloading file: modrapi-1.2.tar.gz
--19:43:19-- http://rapidshare.com/files/101290881/modrapi-1.2.tar.gz
=> `/home/warrd/download/modrapi-1.2.tar.gz.downloading'
Resolving rapidshare.com... 195.122.131.5, 195.122.131.6, 195.122.131.7, ...
Connecting to rapidshare.com|195.122.131.5|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 5,336 (5.2K) [text/html]

100%[====================================>] 5,336 --.--K/s

19:43:22 (189.01 KB/s) - `/home/warrd/download/modrapi-1.2.tar.gz.downloading' saved [5336/5336]

mv /home/warrd/download/modrapi-1.2.tar.gz.downloading /home/warrd/download/modrapi-1.2.tar.gz
Size check : 5336 -lt 15000
5336
TEST1:
TEST2:
TEST3:
TEST4:
LIST:
ls: cannot access -: No such file or directory
ls: cannot access l: No such file or directory
/home/warrd/download/modrapi-1.2.tar.gz
Status: Target server unavailable
rm /home/warrd/download/modrapi-1.2.tar.gz >/dev/null 2>&1

=========================================
Download stats:
0 from 1 file(s) downloaded
=========================================

m0d pisze...

@jls - i need an info text that rapidshare gives when limit is ex. (exact fraze) - could u post it here?

i didnt reach download limit for a long time so i dont know how it looks in new layout

@nnnww try to download something bigger

proper download is detected by size (modrapi is less than 15k) - ive did this that way becouse theres not much files on rapidshare that are less than 15k of size

JLS pisze...

Hi! Thanks for the fast reply. ;)

The page output is this:

--------------
Error
You want to download the following file:

[link] | [size]

You have exceeded the download limit.

You can download 5 Gigabytes per day. 5 Gigabytes are equal to 5.000.000.000 Bytes.
---------------

Where "[link] | [size]" is the link + size of the file, which is pretty random.

modrapi.log:

[Qui Jul 31 16:13:33 WEST 2008] - Unavailable target server : [link]
[Qui Jul 31 16:13:33 WEST 2008] - Removing tmp file of: [path to + filename]

Anonimowy pisze...

Nice job. This should probably be packaged for the major distros.

I have one suggestion: instead of taking a file full of links, it should look for a regex for a rapidshare url, without the "http://" at the beginning, and convert it into a url. Lots of sites just post the links like that, or with "hxxp://" to keep you from clicking on it. Also, some rapidshare related sites use password protection so your script can't be expected to get to them. If it didn't need a whole link, you could just copy and paste whole paragraphs from the browser and the script could take care of it.

Anonimowy pisze...

Hey thank you for the script. i think rapidshare should give you some credits for this, nice script :)

Anonimowy pisze...

Linux Rapidshare free downloader

Anonimowy pisze...

Thank you from Spain ;)

Modrapid it's simple that i looking for.

Great country Poland!!

m0d pisze...

tobiasz proponuje sprawdzic stabilnosc Twojego polaczenia internetowego - jezeli jest download i zerwie Ci pakiety to nic dziwnego ze konczy sciaganie

Piyush pisze...

There is a problem for new users. As the rapidshare has changed its formate the script should be changed accordingly.IN the Relogin function there is a line "wget set cookie.." and after that "cat .. | grep "Your account is valid"

"Your account is valid" should be changed with "The Account is valid"

Notice the case.If you ignore case then it will not solve the problem. So replaced the line as i wrote.

Enjoy downloading



####### Main functions ########

function Relogin
{
L=$RAPIDSHARE_COM_LOGIN
P=$RAPIDSHARE_COM_PASSW
H=$RAPIDSHARE_LOGIN_URI
F=$RAPIDSHARE_LOGIN_FILE
LF=$MODLOGIN

echo " "
echo "------------------------"
echo " Relogin in progress "
echo "-----------------------"
echo " "

wget --save-cookies=$MODSES -q --post-data="accountid=$L&password=$P&premiumlogin=1" $H$F -O $LF

#cat $MODLOGIN
STATUS=`cat $MODLOGIN | grep 'Your account is valid'`

Deed pisze...

I'm always getting failed login.

george@SLUG:~/.modrapi$ modrapi relogin

------------------------
Relogin in progress
-----------------------

Invalid relogin

And when I try to download, it just says the file is not avilible. I'm guessing they have changed the login method again, could you please update the script or let me know where I need to go to fix it? Thanks.

Deed pisze...

I've since managed to get the curl method working from this site:

http://www.g-loaded.eu/2007/09/15/use-wget-or-curl-to-download-from-rapidshare-premium/

The wget method does not work, so I'm thinking perhaps curl is the way forward. How difficult would it be to code curl into modrapi to get it using that instead?

m0d pisze...

Deed do u have ssl enabled in wget (not always default installation have ssl enabled)

and where is the problem with wget : login or file download?

ertpresso pisze...

Very good tool. I'd tried many DL managers in Linux to use with my RS premium account before. This is what I was looking for. It is simple, just doing its job perfectly. Thank you!

Idea 1: It would be great if I can rearrange order of links in modrapi download queue.

Idea 2: I know we can limit download speed with "configure", which works excellent. Another parameter to limit the speed for a particular session would also be useful.

Anonimowy pisze...

Rapidshare counter fix 13.11.2008

modrapi script

>Find
wget --save-cookies=$MODSES -q --post-data="login=$L&password=$P" $H$F -O $LF
>make change
wget --save-cookies=$MODSES -q --post-data="login=$L&password=$P&uselandingpage=1" $H$F -O $LF

Anonimowy pisze...

Works very well.

katsudon pisze...

Hi!
since i'm having the same problem as Gabriel and nnnww (Status: Target server unavailable) and i can't figure out how to solve it, i'd like to uninstall the script but since i'm really new to linux i'd like to know how to uninstall it.
thanks in advance!

jack pisze...

BEST WAY TO LEGALLLY OWN A RAPIDSHARE 1 year PREMIUM ACCOUNT.

Follow these steps:
1. Create a paypal PREMIUM Account at this address. It is free;

http://www.paypal.com

When asked for credit card details simply say cancel. You do not need to fill it.

2.Then go to the following link;
http://www.AWSurveys.com/HomeMain.cfm?RefID=jack_daniel25

Join this site. It is also free. You get paid for completing surveys over there 6$ to 4$ dollars per survey and 1.25$ per referral thats a lot of cash .

4.. Another thing you can also use paypal money to buy stuff on ebay and other shopping sites

5. Thats is it. So Simple and I swear it works.

I learnt this from another friend and i thought it will be good for my friends here. So I thought of helping

Anonimowy pisze...

Well done script, and easy as hell to use, THANKS!

Erik pisze...

Hello,
I have installed modrapi and it works without problem.
I have just one question:
Does the modrapi works under Ubuntu 8.04 - Hardy Heron?????

Have somebody any experiences?

thanks for your answers...

Eric

m0d pisze...

it was developed under ubuntu 7.10
but there shouldnt be any problem under 8.04 or 8.10 either

Erik pisze...

few days before i installed ubuntu 8.04.

of course immediately I tried the modrapi download manager.
I am very satisfied, because modrapi works without problems under ubuntu 8.04.

for your info
thanks

Anonimowy pisze...

BEST WAY TO LEGALLLY OWN A RAPIDSHARE 1 year PREMIUM ACCOUNT.

Follow these steps:
1. Create a paypal PREMIUM Account at this address. It is free;

http://www.paypal.com

When asked for credit card details simply say cancel. You do not need to fill it.

2.Then go to the following link;
http://www.AWSurveys.com/HomeMain.cfm?RefID=polyrich

Join this site. It is also free. You get paid for completing surveys over there 6$ to 4$ dollars per survey and 1.25$ per referral thats a lot of cash .

4.. Another thing you can also use paypal money to buy stuff on ebay and other shopping sites

5. Thats is it. So Simple and I swear it works.

I learnt this from another friend and i thought it will be good for my friends here. So I thought of helping

Anonimowy pisze...

In the function LoadViaHttp() change the regular expression of the grep from

http://rapidshare.com/files/[0-9]{5,15}/[0-9a-zA-Z\.\_\-\~W]{1,300}[.][0-9a-zA-Z]{2,4}

to

http://rapidshare.com/files/[0-9]{5,15}/[0-9a-zA-Z\.\_-\~W]{1,300}[.][0-9a-zA-Z]{2,4}

(you don't need to escape the - and it leads to files not being enqueued correctly).

-simon

Anonimowy pisze...

For me, it doesn't work.
Could anyone help me?
Always "login in progress"

son@son-laptop:~$ modrapi add http://rapidshare.com/files/178664137/Monamour.part1.rar
Import: 1 link imported
son@son-laptop:~$ modrapi download
Session cleared
Login in progress

m0d pisze...

try to change your password to rapidshare - use letters and numbers without special characters

Anonimowy pisze...

This downloader is amazing. No problem, no fancy crap, no bullshit, just a working rapidshare downloader.

Thanks a lot!

Anonimowy pisze...

Love it - thanks from Ireland!

Brian pisze...

modrapi is fantastic !!! I have no problems with it; I ran multiple at same time and it works like the windows Rapidshare Manager.

would be cool if it can pause downloads

thanks much for creating it!

Anonimowy pisze...

it wouldn't suck if it had parallel downloading like the Windows rapidshare manager

Anonimowy pisze...

It works GREAT :).
Good Job, Thanks.

Here is the log:

bunizz@bunizz-desktop:~/Desktop$ modrapi file /home/bunizz/Desktop/links.txt
Import: 7 link(s) imported
bunizz@bunizz-desktop:~/Desktop$ modrapi download
---
Downloading file: Dpe.part1.rar
--00:25:24-- http://rapidshare.com/files/130860883/Dpe.part1.rar
=> `/home/bunizz/downloads/Dpe.part1.rar.downloading'
Resolving rapidshare.com... 195.122.131.8, 195.122.131.9, 195.122.131.10, ...
Connecting to rapidshare.com|195.122.131.8|:80... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: http://rs302l33.rapidshare.com/files/130860883/Dpe.part1.rar [following]
--00:25:24-- http://rs302l33.rapidshare.com/files/130860883/Dpe.part1.rar
=> `/home/bunizz/downloads/Dpe.part1.rar.downloading'
Resolving rs302l33.rapidshare.com... 195.122.149.103
Connecting to rs302l33.rapidshare.com|195.122.149.103|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 104,857,600 (100M) [application/octet-stream]

Anonimowy pisze...

Well nice script... but i wrote something simular before i found yours.

The problem is that i want from manager to seperate my downloading. It means when i put him a list of files he will ask where to put///

Red pisze...

Hi,
great script, was working fine till

user@puter:~$ modrapi add http://rapidshare.com/files/33156293/Philadelphia.1993.DVDRip.XviD.INTERNAL-ApL.r00 Import: 1 link imported
user@puter:~$ modrapi download
/usr/bin/modrapi: line 345: [: 13%: integer expression expected
---
Downloading file: Philadelphia.1993.DVDRip.XviD.INTERNAL-ApL.r00
/home/user/downloads/Philadelphia.1993.DVDRip.XviD.INTERNAL-ApL.r00.downloading: Permission denied
Status: Connection problem - skiping

=========================================
Download stats:
0 from 1 file(s) downloaded
=========================================

user@puter:~$


Any ideas?
Thanks

m0d pisze...

try to download via web - propably exception that modrapi dont understund - maybe limit exceded or somethng like that - if no - make me a comment

Anonimowy pisze...

Any chance for a megaupload version of this script?

m0d pisze...

no, becouse i dont have access to megaupload premium account

Anonimowy pisze...

hey brilliant script you've made, congratz!!
can we figure out a way for multiples and SIMULTANEOUS downloads?

Flar pisze...

Thanks alot for this great script! keep up the good work !!

looking forward to parallel downloading !

ElSiggo pisze...

Great stuff! I was looking for a great Terminal RS download manager, and I definitely found what I was looking for with Modrapi! :)

By the way, is there a way to pause/resume downloads? Right now I'm downloading 15 links I specified with a links.txt file, but what to do if I want to pause and maybe resume tomorrow?

Take care and keep up the great work! :D

m0d pisze...

# killall modrapi wget

resume mode is automatic

Ken Baldwin pisze...

I get the "Target server unavailable" no matter what I try. Ideas? Thanks

Durand pisze...

Works beautifully, thanks!

michal_katulski pisze...

A way how to add support for upload of the files:

http://images.rapidshare.com/software/rsapiresume.pl

Maybe author of the modrapi will be interested :)

BTW: by adding a parameter "directstart=1" to the download link, it will force the direct download, even if a premium user has not activated direct downloads in his settings.
(example: http://rapidshare.com/files/12345/data.name?directstart=1)

There is also cool RapidShare API (http://images.rapidshare.com/apidoc.txt)

Anonimowy pisze...

Everything works great, thanks!

Sugestions:
1- delayed start (ex at 2AM when limits count only 10%)
2- multiple downloads (with my 100mbits i use only 50% or less)

lubo pisze...

perfektne, funguje ihned Vdaka
Perfect job, works immediately Thanks
cevko

Anonimowy pisze...

you have a nice site. thanks for sharing this enormous resources. keep it up. anyway, various kinds of ebooks are available here

http://feboook.blogspot.com

Anonimowy pisze...

well done, works like charm

suggestions:
-SIMULTANEOUS downloads
-proxy settings in configure dialog

I dont use wget so it wasnt configured and it would be nice to do it with modrapi :)

Anonimowy pisze...

Can i use dlc file to import download links?

Vaclav Subert pisze...

Thanks for this great download manager, everything works fine except resuming downloads.this is what i always get:
--2010-02-18 17:38:35-- (try: 2) --file--
Connecting to blah.rapidshare.com|62.140.31.60|:80... connected.
HTTP request sent, awaiting response... 206 Partial content
Length: 1572864251 (1.5G), 290741531 (277M) remaining [application/octet-stream]
Saving to: `blah.downloading'

99% [++++++++++++++++++++++++++++++=====> ] 1,572,864,250 313K/s in 11m 56s

2010-02-18 17:50:31 (397 KB/s) - Connection closed at byte 1572864250. Retrying.

Menda pisze...

Hi. Can I have 2 instances of the program downloading 2 different files?

Thanks!

Menda pisze...

Whatever file I try to download, I get in my downloads dir a 33.6 KB file.

This is my bash:
menda@mac:~/Programacion/pfc$ modrapi load http://todito-depoquito.blogspot.com/2010/03/musica-buika-nina-de-fuego-rapidshare.html
Import: 1 link(s) imported
menda@mac:~/Programacion/pfc$ modrapi download
---
Downloading file: sbnm.bk.sp.rlbm.yn.rar
Status: Downloaded
---
Unrecognized line in DB file - removing

=========================================
Download stats:
1 from 1 file(s) downloaded
=========================================


This is my logfile:
[dom mar 28 23:21:45 CEST 2010] + Import from file /home/menda/.modrapi/modrapi.http : 1 link(s)
[dom mar 28 23:21:47 CEST 2010] + File downloaded: http://rapidshare.com/files/348059578/sbnm.bk.sp.rlbm.yn.rar
[dom mar 28 23:21:47 CEST 2010] - Unrecognized line removed from DB: '1'
[dom mar 28 23:21:47 CEST 2010] = Download session stats : 1 / 1

Mehrdad Vatanparvar pisze...

Hi again
i've just solved my problem , i checked my rapid setting and with no reason direct download was unchecked !!!

thank you

william pisze...

whoa!!!, you had a passion in blogging, thumbs up for your work of love.. Hehe very inspiring ideas,


anyway I'm william
mind if I put a link back to you?


(clickable) ------> suits los angeles