α) κάνουμε download από το rapidshare to authentication cookie:
wget --save-cookies ~/.cookies/rapidshare --post-data "login=USERNAME&password=PASSWORD" -O https://ssl.rapidshare.com/cgi-bin/premiumzone.cgi > /dev/null
όπου USERNAME to όνομα χρήστη και PASSWORD το password.
αν δεν υπάρχει το directory ~/.cookies απλά το φτιάχνουμε.
όλη η πληροφορία για login στο rapidshare υπάρχει πλέον στο αρχείο:
~/.cookies/rapidshare
κάνοντας cat ~/.cookies/rapidshare μπορούμε να δούμε τα credencials μας
b) μετά μπορούμε να κατεβάσουμε οποιοδήποτε αρχείο από το rapidshare με την εξής εντολή:
wget -c --load-cookies ~/.cookies/rapidshare "rapidshare URL"
π.χ
wget -c --load-cookies ~/.cookies/rapidshare "http://rapidshare.com/0001/file.part1.rar"
c) για να αυτοματοποιήσουμε την διαδικασία μπορούμε να φτιάξουμε ένα script που δίνοντας του σαν input ενα txt αρχείο που περιέχει τα rapidshare URLs να παράγει ενα download script για το content που θέλουμε να κατεβάσουμε.
Π.χ. έχω το
batman.txt που περιέχει:
$> cat batman.txt
http://rapidshare.com/0001/file.part1.rar
http://rapidshare.com/0001/file.part2.rar
http://rapidshare.com/0001/file.part3.rar
-το txt το έχω φτιάξει κάνοντας copy paste τα URL από σελίδα στο internet.
μετά τρέχω:
$>./rapidshare.sh batmant.txt
αυτό παράγει:
$>batman.sh
μετά:
$>./batman.sh
αρχίζει και κατεβάζει όλη τα files...
προσοχή το αν τα files είναι password protected - πρέπει να κάνω αλλού save το password.
ο κώδικας για το rapidshare.sh είναι:
d) (ΝΟΤ Safe 100% - under development) - αν βαρεθούμε το copy paste σε txt υπάρχει και η λύση του script που έχει σαν input το URL της σελίδας του internet και κατεβάζει OTI rapidshare URL βρεί πάνω στην σελίδα.Κώδικας:#!/bin/bash # Made by sip03ds # This is a script that is used to download from rapidshare # The script gets as an input a text file that contains the rapidshare links # The script creates the command arround the links that will download the files and passes the to a new script # The script alters the permissions of the new script # The script executes the new script NUMBER_OF_FILES="$#"; ALL_FILES="$@"; if [ $NUMBER_OF_FILES -gt 0 ]; then for ARG in $ALL_FILES do FILE=$ARG; if [ -f $FILE ]; then echo "Processing file $FILE"; NEW_FILE=`echo $FILE | sed 's/txt/sh/'i`; cat $FILE | awk '{print("wget -c --load-cookies ~/.cookies/rapidshare \""$0"\"")}' > ../$NEW_FILE; chmod 744 ../$NEW_FILE && rm $FILE else echo "The file: $FILE supplied does not exist"; fi done else echo "You have not supplied any files"; fi
Π.χ.
$>./getFromRapidshare.sh http://www.files.org/index.html
αυτό το κατεβάσει ότι rapidshare links υπάρχουν στην σελίδα index.html.
προσοχή το αν τα files είναι password protected - πρέπει να κάνω αλλού save το password.Κώδικας:#!/bin/bash # This script is created by Dimitris Stathopoulos. # The purpose of the script is to download the rapidshare links contained in an html page. # The input of the script is the URL of the page that contains the rapidshare links. # The script downloads the URL via wget. # The script parses the HTML got via wget in order to find the rapidshare links. # The script creates a txt file with all the rapidshare links. # The script creates the shell script used to download the links with the aid of the txt file. NUMBER_OF_URLS="$#"; ALL_URLS="$@"; # Validate if the user has supplied URLs. if [ $NUMBER_OF_URLS -gt 0 ]; then for ARG in $ALL_URLS do URL=$ARG; wget -q -O html.html $URL; HTML_PAGE=html.html # echo "The HTML page is: $HTML_PAGE"; # Need to add Check if the HTML page contains rapidshare links # IF it contains then: cat $HTML_PAGE | sed 's/</\n/g' | sed 's/>/\n/g' | grep 'http://rapidshare.com/files' > rapidsharelinks.txt; LINKS=rapidsharelinks.txt; # echo "The rapidshare links are: "; # cat $LINKS; echo "OLA KALA"; cat $LINKS | awk '{print("wget -c --load-cookies ~/.cookies/rapidshare \""$0"\"")}' > ../rapid.sh; chmod 744 ../rapid.sh; rm $LINKS; rm $HTML_PAGE; ../rapid.sh; rm ../rapid.sh; done else echo "You have not supplied any URLs. Please supply with valid URLs that contain rapidshare links."; fi
Εμφάνιση 1-7 από 7
-
06-05-09, 11:43 PREMIUM RAPIDSHARE DOWNLOAD (SCRIPTING) #1"Him who knows the past controls the future, and him who controls the future conquers the past"
-
06-05-09, 11:55 Απάντηση: PREMIUM RAPIDSHARE DOWNLOAD (SCRIPTING) #2
- Εγγραφή
- 27-08-2004
- Περιοχή
- internet
- Μηνύματα
- 23.374
- Downloads
- 58
- Uploads
- 17
- Άρθρα
- 9
- Ταχύτητα
- 49999 / 4999
- ISP
- ΟΤΕ Conn-x
- DSLAM
- ΟΤΕ - ΚΟΥΝΟΥΠΙΔΙΑΝΩΝ
Ωραίος!
Θα σου προτείνω όμως, επειδή παλιά και εγώ με wget και script το έκανα, να κοιτάξεις και το aria2.
Είναι και αυτός download manager για κονσόλα, επίσης ελαφρύς και έχει το καλό πως είναι multithreaded, multisegmented και resumable.
Δηλαδή στο aria2 για να πεις να κατεβάσεις 3 αρχεία ταυτόχρονα με 2 segments το καθένα για πιο γρήγορα θα έτρεχες:
Κώδικας:$ aria2c -s2 -j3 --load-cookies /path/to/cookie -i batman.txt
Επίσης σημαντικό είναι πως κάνει preallocation του χώρου ώστε να μην δημιουργεί fragmentation στο σκληρό.Gentoo Linux: mess with the best and you might learn something
δικτυακή παράσταση | twitter | within specifications
Αν φτάσω τα 100 και με ρωτήσουν το μυστικό της μακροζωίας θα πω: Πάντα είχα 3 ποτήρια μπροστά μου· ένα με νερό, ένα με καφέ & ένα με αλκοόλ.
-
06-05-09, 15:06 Απάντηση: PREMIUM RAPIDSHARE DOWNLOAD (SCRIPTING) #3
Επισης δεν χρειάζεται να κάνεις script για να δώσεις στο wget ένα txt με URL. Το δίνεις κατευθείαν με:
Κώδικας:wget -i url.txt
Κώδικας:wget -input=url.txt
Κάνω προσπάθεια να βάζω ; αντι για ?
-
06-05-09, 15:24 Απάντηση: PREMIUM RAPIDSHARE DOWNLOAD (SCRIPTING) #4
οκ, και authentication για τον premium account πως θα κάνεις?
"Him who knows the past controls the future, and him who controls the future conquers the past"
-
06-05-09, 16:01 Απάντηση: PREMIUM RAPIDSHARE DOWNLOAD (SCRIPTING) #5
- Εγγραφή
- 27-08-2004
- Περιοχή
- internet
- Μηνύματα
- 23.374
- Downloads
- 58
- Uploads
- 17
- Άρθρα
- 9
- Ταχύτητα
- 49999 / 4999
- ISP
- ΟΤΕ Conn-x
- DSLAM
- ΟΤΕ - ΚΟΥΝΟΥΠΙΔΙΑΝΩΝ
Κανονικά, με το διακόπτη που χρησιμοποιείς και εσύ (--load-cookie).
Gentoo Linux: mess with the best and you might learn something
δικτυακή παράσταση | twitter | within specifications
Αν φτάσω τα 100 και με ρωτήσουν το μυστικό της μακροζωίας θα πω: Πάντα είχα 3 ποτήρια μπροστά μου· ένα με νερό, ένα με καφέ & ένα με αλκοόλ.
-
06-05-09, 16:03 Απάντηση: PREMIUM RAPIDSHARE DOWNLOAD (SCRIPTING) #6
έλα ντε!
"Him who knows the past controls the future, and him who controls the future conquers the past"
-
06-05-09, 16:23 Απάντηση: PREMIUM RAPIDSHARE DOWNLOAD (SCRIPTING) #7
- Εγγραφή
- 27-08-2004
- Περιοχή
- internet
- Μηνύματα
- 23.374
- Downloads
- 58
- Uploads
- 17
- Άρθρα
- 9
- Ταχύτητα
- 49999 / 4999
- ISP
- ΟΤΕ Conn-x
- DSLAM
- ΟΤΕ - ΚΟΥΝΟΥΠΙΔΙΑΝΩΝ
Ένα scriptάκι που επίσης μπορεί να φανεί χρήσιμο (για αυτό το είχα φτιάξει άλλωστε
) είναι το παρακάτω που ελέγχει αν υπάρχουν τα links:
Κώδικας:#!/bin/bash # Check for dead rapidshare links # official filename: mrschklnks # by And.Marios - mrsaccess. wget --spider --load-cookie /path/to/cookie -i $1 2>&1 | \ grep -E -o "http.*|Length.*|Remote file.*" | \ sed -e 's/Length: \(.*\) (.*/\1/' | \ tr '\n' ' ' | \ sed -e 's/ http/\nhttp/g' > $2 echo >> $2 cat $2 | while read i; do if echo $i | grep -sq -i further; then echo -e "\033[31;1m$(echo $i|sed -e 's/ Remo.*/ File inexistent!/')\033[0m" else echo $i | sed -e 's/ Remo.*//' fi done
Το τρέχεις κάπως έτσι, έστω το script λέγεται mrschklnks και έχεις μια λίστα με links, την list.txt:
Κώδικας:$ mrschklnks list.txt list2.txt
Διαβάζει την λίστα list.txt και σου τυπώνει στην οθόνη αλλά και στο αρχείο list2.txt ποια υπάρχουν (το μέγεθός τους) και ποια είναι νεκρά.
Θα μπορούσε να μη γράφει νέο αρχείο αλλά έτσι το χρειαζόμουν και έτσι το έφτιαξα, όποιος θέλει μπορεί να το αλλάξει!Gentoo Linux: mess with the best and you might learn something
δικτυακή παράσταση | twitter | within specifications
Αν φτάσω τα 100 και με ρωτήσουν το μυστικό της μακροζωίας θα πω: Πάντα είχα 3 ποτήρια μπροστά μου· ένα με νερό, ένα με καφέ & ένα με αλκοόλ.
Παρόμοια Θέματα
-
Rapidshare Μειωση download limit για premium users
Από Babylon5gr στο φόρουμ Internet, web surfing και online υπηρεσίεςΜηνύματα: 1Τελευταίο Μήνυμα: 02-02-09, 19:24 -
free download manager + rapidshare premium
Από indietronic στο φόρουμ Software γενικάΜηνύματα: 14Τελευταίο Μήνυμα: 26-04-08, 01:12 -
rapidshare premium account
Από mpotsos στο φόρουμ Internet, web surfing και online υπηρεσίεςΜηνύματα: 34Τελευταίο Μήνυμα: 16-01-08, 19:58 -
Rapidshare Premium και download accelerator
Από x69pr στο φόρουμ Internet, web surfing και online υπηρεσίεςΜηνύματα: 51Τελευταίο Μήνυμα: 08-01-08, 13:24 -
rapidshare premium & rapget
Από katdoc στο φόρουμ Internet, web surfing και online υπηρεσίεςΜηνύματα: 13Τελευταίο Μήνυμα: 03-11-07, 11:46
Bookmarks