Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Wget non mi capisce
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
ultimodruido
Apprentice
Apprentice


Joined: 11 Dec 2003
Posts: 253
Location: Muenchen

PostPosted: Wed Mar 10, 2004 8:39 pm    Post subject: Wget non mi capisce Reply with quote

Ciao gentee
dovrei scaricare un pezzo di sito di un'universita tedesca per farmi il piano di studi dell'anno prossimo (Erasmus :lol: ) e volevo ottenerne una copia in locale con wget
la pagina e la seguente:
http://univis.tum.de/form?__s=2&dsc=anew/tum_lss:down&tdir=__lss/maschi&anonymous=1&ref=tumstud&sem=2003w&__e=487
solo che quando ce lo infilo sulla linea di comando con wget interpreta male le & e altre cose e alla fine mi scarica solo una pagina e non il tutto. percaso qualcuno ha un suggerimento?lo so che è una domanda stupida, io ho provato a mettere \& al posto di & solo ma poi si fermava per un'altro motivo che no ho capito

se scrivo solo il sito fa questo:
Code:
druidonike@pumba druidonike $ wget --convert-links -c -l8 -r http://univis.tum.de/form?__s=2&dsc=anew/tum_lss:down&tdir=__lss/maschi&anonymous=1&ref=tumstud&sem=2003w&__e=487
[1] 1949
[2] 1950
[3] 1951
[4] 1952
[5] 1953
[6] 1954
[3]   Done                    tdir=__lss/maschi
[4]   Done                    anonymous=1
druidonike@pumba druidonike $ --21:16:26--  http://univis.tum.de/form?__s=2
           => `univis.tum.de/form?__s=2'
Resolving univis.tum.de... done.
Connecting to univis.tum.de[129.187.102.9]:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2,089 [text/html]
 
100%[====================================================================================>] 2,089          1.99M/s    ETA 00:00
 
21:16:27 (1.99 MB/s) - `univis.tum.de/form?__s=2' saved [2089/2089]
 
 
FINISHED --21:16:27--
Downloaded: 2,089 bytes in 1 files
Converting univis.tum.de/form?__s=2... 0-11
Converted 1 files in 0.00 seconds.
 
[1]   Done                    wget --convert-links -c -l8 -r http://univis.tum.de/form?__s=2
[2]   Done                    dsc=anew/tum_lss:down
[5]-  Done                    ref=tumstud
[6]+  Done                    sem=2003w

dopo converted si pianta e allora lo fermo, tanto il man di wget dice che converte tutti i link alla fine quindi per lui e finita la storia
con la correzione fa questo:
Code:
druidonike@pumba druidonike $ wget --convert-links -c -l8 -r http://univis.tum.de/form?__s=2\&dsc=anew/tum_lss:down\&tdir=__lss/maschi\&anonymous=1\&ref=tumstud&sem=2003w\&__e=487
[1] 1999
druidonike@pumba druidonike $ --21:32:42--  http://univis.tum.de/form?__s=2&dsc=anew/tum_lss:down&tdir=__lss/maschi&anonymous=1&ref=tumstud
           => `univis.tum.de/form?__s=2&dsc=anew/tum_lss:down&tdir=__lss/maschi&anonymous=1&ref=tumstud'
Resolving univis.tum.de... done.
Connecting to univis.tum.de[129.187.102.9]:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 11,055 [text/html]
 
100%[====================================================================================>] 11,055        11.68K/s    ETA 00:00
 
21:32:44 (11.68 KB/s) - `univis.tum.de/form?__s=2&dsc=anew/tum_lss:down&tdir=__lss/maschi&anonymous=1&ref=tumstud' saved [11055/11055]
 
 
FINISHED --21:32:44--
Downloaded: 11,055 bytes in 1 files
Converting univis.tum.de/form?__s=2&dsc=anew/tum_lss:down&tdir=__lss/maschi&anonymous=1&ref=tumstud... 0-57
Converted 1 files in 0.00 seconds. ****
 
[1]+  Done                    wget --convert-links -c -l8 -r http://univis.tum.de/form?__s=2\&dsc=anew/tum_lss:down\&tdir=__lss/maschi\&anonymous=1\&ref=tumstud

gli asterischi li ho messi io perche lo interrompo, tanto si pianta e non va più avanti a cercare le sotto pagine

Grazie 1000 a tutti per l'aiuto
Nic
_________________
Account Jabber: ultimodruido@jabber.linux.it
Back to top
View user's profile Send private message
alexbr
Apprentice
Apprentice


Joined: 06 Sep 2003
Posts: 221
Location: Treviso - Italy

PostPosted: Wed Mar 10, 2004 8:54 pm    Post subject: Reply with quote

hai provato a mettere i doppi apici all'inizio e alla fine della pagina, cioè:
Code:
 alexbr@mrxdata alexbr $ wget "http://univis.tum.de/form?__s=2&dsc=anew/tum_lss:down&tdir=__lss/maschi&anonymous=1&ref=tumstud&sem=2003w&__e=487"
--21:52:46--  http://univis.tum.de/form?__s=2&dsc=anew/tum_lss:down&tdir=__lss/maschi&anonymous=1&ref=tumstud&sem=2003w&__e=487
           => `form?__s=2&dsc=anew%2Ftum_lss:down&tdir=__lss%2Fmaschi&anonymous=1&ref=tumstud&sem=2003w&__e=487'
Resolving univis.tum.de... done.
Connecting to univis.tum.de[129.187.102.9]:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 43,083 [text/html]
 
100%[====================================>] 43,083        29.95K/s    ETA 00:00
 
21:52:49 (29.95 KB/s) - `form?__s=2&dsc=anew%2Ftum_lss:down&tdir=__lss%2Fmaschi&anonymous=1&ref=tumstud&sem=2003w&__e=487' saved [43083/43083]

A me, come vedi, funge :D [/code]
_________________
Lizzie Borden with an axe
gave her father forty wakes
when she saw what she had done
she gave her mother forty one
Back to top
View user's profile Send private message
ultimodruido
Apprentice
Apprentice


Joined: 11 Dec 2003
Posts: 253
Location: Muenchen

PostPosted: Wed Mar 10, 2004 9:23 pm    Post subject: Reply with quote

Ciao grazie per la risposta, ora mi tira giu quella pagina, pero devo essere un po' sfigato, perche non va giu nei sotto-livelli e come se non bastasse quello che ha downloadato non è una pagina html. e mozilla non la apre. in realta gia il link non e una pag html. vabe grazie lo stesso, provo a rileggere il man di wget
ciao grazie
_________________
Account Jabber: ultimodruido@jabber.linux.it
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum