From charlesreid1

(Created page with "Setting this up is confusing as hell, mainly because the documentation sucks. Code for pywikibot on Github: https://github.com/wikimedia/pywikibot-core/ Start by checking it...")
 
No edit summary
Line 21: Line 21:
$ git submodule update --init
$ git submodule update --init
</pre>
</pre>
Add a custom family file to the big directory of family files:
<pre>
$ ls pywikibot/families
...
wikivoyage_family.py
wiktionary_family.py
wowwiki_family.py
</pre>
This is where you will put your custom family file.

Revision as of 02:53, 16 April 2017

Setting this up is confusing as hell, mainly because the documentation sucks.

Code for pywikibot on Github: https://github.com/wikimedia/pywikibot-core/

Start by checking it out:

$ git clone https://github.com/wikimedia/pywikibot-core/ pwb
$ cd pwb

Install all the pip stuff that you may need:

$ pip install -r requirements.txt

Update git submodules:

$ git submodule update --init

Add a custom family file to the big directory of family files:

$ ls pywikibot/families
...
wikivoyage_family.py
wiktionary_family.py
wowwiki_family.py

This is where you will put your custom family file.