瀏覽代碼

Merge pull request #27 from legoktm/develop

Update Pywikipedia documentation and links
tags/v0.2
Ben Kurtovic 11 年之前
父節點
當前提交
fe42d8bfa8
共有 1 個檔案被更改,包括 3 行新增3 行删除
  1. +3
    -3
      docs/integration.rst

+ 3
- 3
docs/integration.rst 查看文件

@@ -7,12 +7,12 @@ Integration
:py:func:`mwparserfromhell.parse() <mwparserfromhell.__init__.parse>` on
:py:meth:`~earwigbot.wiki.page.Page.get`.

If you're using PyWikipedia_, your code might look like this::
If you're using Pywikipedia_, your code might look like this::

import mwparserfromhell
import wikipedia as pywikibot
def parse(title):
site = pywikibot.get_site()
site = pywikibot.getSite()
page = pywikibot.Page(site, title)
text = page.get()
return mwparserfromhell.parse(text)
@@ -31,5 +31,5 @@ following code (via the API_)::
return mwparserfromhell.parse(text)

.. _EarwigBot: https://github.com/earwig/earwigbot
.. _PyWikipedia: http://pywikipediabot.sourceforge.net/
.. _Pywikipedia: https://www.mediawiki.org/wiki/Manual:Pywikipediabot
.. _API: http://mediawiki.org/wiki/API

Loading…
取消
儲存