开发者

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://"

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜