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: bug-wget-bounces+wget=exelana....@gnu.org
[mailto:bug-wget-bounces+wget=exelana....@gnu.org] On Behalf Of Kurt
Schroeder
Sent: Tuesday, January 20, 2009 11:11 AM
To: bug-wget@gnu.org
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
ksch...@us.ibm.com
664-3 C115     (507) 286-6177
My New Year's Resolution is 1024 pixels by 768 pixels.





Reply via email to