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
- Host: GitHub
- URL: https://github.com/stef/herrnilsson
- Owner: stef
- Created: 2012-04-14T21:02:25.000Z (about 14 years ago)
- Default Branch: master
- Last Pushed: 2013-11-21T14:37:29.000Z (over 12 years ago)
- Last Synced: 2025-03-27T20:46:08.533Z (over 1 year ago)
- Language: Python
- Homepage:
- Size: 152 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.org
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