bug-wget
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [Bug-wget] wget for Google Translation


From: Tony Lewis
Subject: RE: [Bug-wget] wget for Google Translation
Date: Tue, 20 Jan 2009 23:10:19 -0800

Run your command with the -p option and you will notice that it gets three
pages in a new subdirectory names www.google.com. (If not, try adding -e
"robots=off"; I always run with that option).

Once you have that, look at the file that starts with translate_p and you
will notice that it is downloading the results from somewhere other than
www.google.com. When I tried it, it pointed to http://74.125.19.147, which
wget won't follow when you're download www.google.com.

There may be a way to grab that page, but it was obvious to me after a few
minutes of trying.

Tony
-----Original Message-----
From: address@hidden
[mailto:address@hidden On Behalf Of Kurt
Schroeder
Sent: Tuesday, January 20, 2009 11:11 AM
To: address@hidden
Subject: [Bug-wget] wget for Google Translation


Trying to figure out how to use wget to save a Google Translation.

Initially wget failed without a UserAgent string, but I fixed that:

wget -U "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.5)
Gecko/2008120122 Firefox/3.0.5"
"http://www.google.com/translate?u=<URL_TO_TRANSLATE>&hl=en&ie=UTF-8&sl=en&t
l=pt"

Now I need to figure out how to save the actual translated text that is in
the lower frame.

Any ideas? The mirror option doesn't get it.

_______________________________
Kurt  Schroeder
address@hidden
664-3 C115     (507) 286-6177
My New Year's Resolution is 1024 pixels by 768 pixels.







reply via email to

[Prev in Thread] Current Thread [Next in Thread]