Posts Tagged ‘Rapidshare’

RapidShare BASH Download Script

Saturday, June 28th, 2008

Since my BashDL project is kinda on hold till I finish kickstart bash, I’m posting the script I’m currently using to download from rapidshare. I fixed a small bug since rapidshare changed some of the site’s inner workings. The script can currently be found until improved here:
RapidShare Basic Download Script

It’s possible there are still bugs present, in which case you just respond here with what the problem is. If you are going to attach output, check /tmp/ for files looking like LINKS???????.rs, PAGE???????.rs and WGET??????.rs.

IMPORTANT!
Make sure you remove your rapidshare password and user from ALL files you send me. I don’t need to know.
You can do this by using ’sed’ (replace 000000 by your user name / password).
See the manual for information on how to use sed. A example can be found here:

sed -i s/000000/=LOGIN=/ [filename]
sed -i s/000000/=PASSWORD=/ [filename]

If you run into any trouble loading a file with links in it, make sure it has unix line endings. You can use the tool dos2unix to convert a file before using it.

Rapidshare Perl Upload API

Thursday, June 26th, 2008

Not many people know about it, but the file hosting service rapidshare.com provides a perl script to upload files to their servers. They distribute it here: http://images.rapidshare.com/software/rsapi.pl.

If you have ever used it, or are trying it out right now, you’ll notice it is but-ugly. The script isn’t meant to be actually used (AFAIK) but is more of a prove of concept where other programmers can base themselves up to write their own applications to upload to rapidshare. I adjusted the script a little to use myself. Nothing changed in the internals, but I added a progress meter and upload speed.

A small example of the output now is:

[  1%]    896000 of  71061919 bytes sent at [Current/Global:  73.80 /  63.05 (KB/s)]
[  1%]   1024000 of  71061919 bytes sent at [Current/Global:  58.13 /  62.30 (KB/s)]
[  1%]   1152000 of  71061919 bytes sent at [Current/Global:  63.66 /  62.46 (KB/s)]
[  1%]   1280000 of  71061919 bytes sent at [Current/Global:  58.37 /  61.98 (KB/s)]

Upload Speed statistics may be a bit of. it’s more of an indication anyway…

The source of my ‘hardly’-improved version can be found here:
Rapidshare Perl API (Improved) (Zip File).