Skip to content
This repository was archived by the owner on Dec 26, 2018. It is now read-only.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

66 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Baidubaike

baidubaike 是一个百度百科的简单封装,可轻松抓取词条内容、获取标签、内部链接等,亦可输入关键词获取词条搜索结果。

baidubaike is a simple wrapper of the site BaiduBaike. With it you can easily scratch contents, tags, inside urls and so on. Searching for relative results is also supported.

Installation

$ pip install baidubaike

Requirements

  • requests
  • beautifulsoup4

Examples

>>> from baidubaike import Page
>>> google = Page('google')
>>> google.get_info()
# {'url': u'http://baike.baidu.com/view/105.htm',  'last_modify_time': u'2013-12-04',  'title': u'google'}

More usage at Readthedocs

License

MIT Licensed.

Thanks to

https://d2weczhvl823v0.cloudfront.net/yakiang/baidubaike/trend.png

About

An unofficial wrapper of Baidu Baike

Resources

Stars

12 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages