views:

69

answers:

2

Thank to the script, I've logged in google successfully.
But I replaced the value of "gv_home_page_url" with http:// www.google.com.tw/dictionary/wordlist?hl=zh-TW, the error occured.

The message is " urllib2.HTTPError: HTTP Error 500: Internal Server Error"

Any idea will be appreciated, thanks.

+1  A: 

That's not a valid URL. If you try to enter it in your bar, you'll get redirected to Google search results. Using urllib2, you'll get an error.

See here for another way to get data from Google Dictionary:

http://googlesystem.blogspot.com/2009/12/on-googles-unofficial-dictionary-api.html

Goose Bumper
Thanks, is there also API for starred wordlist?
@user313439: I'm not sure what that is.
Goose Bumper
A: 

Does Google require an SSL url? You're using "http://" but the example script uses "https://"

jonesy
Thanks for reminding, but doesn't work still...