rapidlist
file. Then just launch the the script and it will download the files from list. The script will get the first
file from the list and check whether it is available. If it is so, the proper download page will be opened
in the browser (default in xlinks2, but you can customize the browser application),
you will be requested for the access code, and then you will be able to get the file. After downloading
the file you should just close the browser and script will advance to next file from the list, waiting for
its avaliability.
Note, that the script doesn't cheat the rapidshare site, just automates the downloading process of the files list, so you don't have to do it manually, including testing of file avaliability on the webpage and iterating through the list of your links.
I recomend to use the script in following way (to download new list of files):
rapidno and rapidlist files from previous downloading
and prepare the list of url-s into new rapidlist file
"./leech beep" command
rapidno. This file contains the index
of the next URL to retrieve, and after getting it the appropriate URL from the list is downloaded from the
server. File obtained in this step contains only the form to select the download method (free or premium service).
The script automatically chooses the free service and gets the webpage with the next form. Here it checks
whether the file is available or not and if it is, it opens the configured web browser on the downloaded page,
where user has to write the access code from image and get the file. If the file is not available yet, it will
print the amount of time to wait for the file and hangs for 2 minutes before next check. If the file is
downloaded, the file index increases and the next file will be retrieved in the iteration.
Note, that the script parses HTML code from rapidshare website, so when this code will change, the script can work not properly. In this case the appropriate HTML templates in the source code should be changed.
DOWNDIR - download subdirectory
BROWSER - prefered web browser
RLISTFILE - filename with URLs list
RNOFILE - filename with current URL index
TEMPFILE - temporary file name
SLEEPTIME - delay time between requests (in seconds)
wget. You can get the image from the download
form and then request the file with accesscode POST variable set to the string from the
image. In this case the file is being downloaded properly. So I've implemented it in this way - the image
is got to the temporary file, is displayed in the user-defined image viewer, and then the user is requested
to give the access code in the console. In this case we have no any advantages regarding the prior resolution,
but I've been thinking about some automation of the access code recognition, which can be
injected here to completely automate whole process. I've checked the gocr but this
tool doesn't recognize properly the text. So if somebody has any idea how to do it (use another OCR or
write the own piece of code - I have no time to do it for now) can improve my script in that point.