An open API service indexing awesome lists of open source software.

https://github.com/stef/herrnilsson

a mediawiki bot that imports parltrack dossiers
https://github.com/stef/herrnilsson

Last synced: 10 months ago
JSON representation

a mediawiki bot that imports parltrack dossiers

Awesome Lists containing this project

README

          

* HerrNilsson is happy to serve you!

HerrNilsson is a small script that fetches dossiers from http://parltrack.euwiki.org and creates wikipage stubs in a mediawiki site.

You need:

1. A working mediawiki installation. You can operate your private wiki on your private network!
Please also enable https://www.mediawiki.org/wiki/Extension:StringFunctions in your mediawiki
2. Create a wiki page with the name "Template:Ptheader", and copy the contents of the file template.txt into it.
3. a registered user on the wiki from step 1 authorized to edit and create pages.
4. the user credentials and the site for the user from step 2
#+BEGIN_SRC
echo SITE='' >config.py
echo USER='' >>config.py
echo PASSWORD='' >>config.py
echo PREFIX='EP:' >>config.py
#+END_SRC
5. some python packages `pip install -r requirements.txt`

Now you should be ready to run herrnilsson, try importing one page

#+BEGIN_SRC
./herrnilsson.py '2011/0167(NLE)'
#+END_SRC

Check out the imported page on your wiki. here's a screenshot:

[[http://www.ctrlc.hu/~stef/ptwiki.png]]

if you maintain a list of multiple dossiers, herrnilsson is happy to process them all:
#+BEGIN_SRC
./herrnilsson.py