Skip to content

Latest commit

 

History

History
33 lines (20 loc) · 1.45 KB

README.rst

File metadata and controls

33 lines (20 loc) · 1.45 KB

PositionStatements

PositionStatements is a bot based on Pywikibot. It works in a similar way to QuickStatements but works around a problem we ran into when trying to add multiple P39 statements. See this issue for the background.

Installation

Before installing you'll need to make sure you've got a working version of Python 3 and Pipenv

$ git clone https://github.com/everypolitician/position_statements.git
$ cd position_statements
$ pipenv install
$ cp user-config.py-example user-config.py

Then open user-config.py and add the username for the bot you want to use. For full documentation see Manual:Pywikibot/user-config.py.

Usage

Run the position_statements.py script, passing it the path to a TSV file of QuickStatements.

$ pipenv run python position_statements.py example_statements.tsv

If you want to add user attribution in the edit summary then you can specify a user name as an additional argument on the command line.

$ pipenv run python position_statements.py example_statements.tsv 'Chris Mytton'