|
wikitools
Introduction to python-wikitools
Thank you for your interest in wikitools. wikitools is a framework for MediaWiki bots written in Python. It is available as a python package (a collection of related modules) containing general tools for working with wikis, pages, and users on the wiki and retrieving data from the MediaWiki API. It is designed for use on sites running MediaWiki 1.14 and higher.
|
► Sign in to add a comment
Hi I am trying to grab a page with the following code
site = wiki.Wiki("http://en.wikipedia.org/w/api.php") page = page.Page(site, name, followRedir=True) page.setSection(section=None, number=0)
My goal is to get a simple first sentence of the text returned. I was wondering if its possible to retrieve the page as a printable version so it will be slightly easier to pass. Ie passing &printable=yes on the url.
Thanks