My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for
wikitools  
Introduction to python-wikitools
Updated Jun 12, 2010 by MrZmanwiki@gmail.com

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.

  • For information on downloading and installation, see Getting Started
  • For information about upgrading and differences between releases, see Releases and Upgrading.
  • For objects and methods provided by wikitools, see Documentation
Comment by glennpie...@gmail.com, Jun 28, 2011

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


Sign in to add a comment
Powered by Google Project Hosting