Giter Club home page Giter Club logo

pywikisource's Introduction

pywikisource

This library contains the basic API operations like

  • Number of Index Book
  • Current page quality status
  • Proofreader of page
  • Validator of page

It is wikisource dedicated API library.

Installation

  • pip install pywikisource

Demo

from pywikisource import WikiSourceApi

# Create the Wikisource object
WS_pt = WikiSourceApi('pt')

# Get number and labeling of all pages
page_list_dic = WS_pt.createdPageListDic(u'Ambições (Ana de Castro Osório, 1903).pdf')


# Create the Wikisource object
WS = WikiSourceApi('en')

page_list = WS.createdPageList('Landon in Literary Gazette 1833.pdf')
for page in page_list:
    print(page)


# Get the number of pages of Index Book
print(WS.numpage('Landon in Literary Gazette 1833.pdf'))

# Get the proofreader of single page
print(WS.proofreader('Page:Landon_in_Literary_Gazette_1833.pdf/3'))


# Get the validator of single page
print(WS.validator('Page:Landon_in_Literary_Gazette_1833.pdf/3'))

Author

Instruction for Maintainer

To deploy on PyPI

administrator@Jay-Prakash % python setup.py sdist bdist_wheel
administrator@Jay-Prakash % twine check dist/*
administrator@Jay-Prakash % twine upload dist/*

Licence

This is Free Software, released under the MIT.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.