How to get the content of "Google Dictionary" using python script

Thanks script , I have successfully logged into google.
But I replaced the value "gv_home_page_url" with http://www.google.com.tw/dictionary/wordlist?hl=zh-TW, an error occured.

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

Any idea would be appreciated, thanks.

+2


a source to share


2 answers


This is not a valid URL. If you try to enter it into your panel, you will be redirected to Google search results. Using urllib2 will give you 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

+1


a source


Does Google require an SSL URL? You are using "http: //", but the example script uses "https: //"



0


a source







All Articles