How to get the content of "Google Dictionary" by python script
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/d开发者_如何学JAVAictionary/wordlist?hl=zh-TW, the error occured.The message is " urllib2.HTTPError: HTTP Error 500: Internal Server Error"
Any idea will be appreciated, thanks.
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
Does Google require an SSL url? You're using "http://" but the example script uses "https://"
精彩评论