wikisource专用python api库
pywikisource的Python项目详细描述
pywikisource
此库包含基本的api操作,如
- 索引簿的数量
- 当前页面质量状态
- 第页校对人
- 页的验证人
它是wikisource专用api库。
演示
frompywikisourceimportWikiSourceApi# Create the Wikisource objectWS=WikiSourceApi('en')# Get page listpageList=WS.createdPageList('Landon in Literary Gazette 1833.pdf')forpageinpageList:print(page)# Get the number of pages of Index Bookprint(WS.numpage('Landon in Literary Gazette 1833.pdf'))# Get the proofreader of single pageprint(WS.proofreader('Page:Landon_in_Literary_Gazette_1833.pdf/3'))# Get the validator of single pageprint(WS.validator('Page:Landon_in_Literary_Gazette_1833.pdf/3'))
作者
- Jay Prakash,印度技术公司
许可证
这是麻省理工学院发布的免费软件。