pyGooglePython的Google API封装

联合创作 · 2023-09-19 19:13

pyGoogle 是 Python 对 Google API 的封装。


示例代码:


   >>> import google
>>> google.setLicense('...') # must get your own key!
>>> data = google.doGoogleSearch('python')
>>> data.meta.searchTime
0.043221000000000002

>>> data.results[0].URL
'http://www.python.org/'

>>> data.results[0].title
'Python Language Website'
浏览 21
点赞
评论
收藏
分享

手机扫一扫分享

编辑 分享
举报
评论
图片
表情
推荐
点赞
评论
收藏
分享

手机扫一扫分享

编辑 分享
举报