Render wikitext with Python

2.4k views Asked by At

I need to render wikitext (pulled from the database of a mediawiki of it's relevant) and display in some other format (ultimately to be rendered as a PDF, but basically any other format will do).

I can definately hack together something that does the job but ultimately I'll be writing it as I go along, and I can see that the overhead of implementing new tags as people in my team use them will eat up a lot of my time.

Is there a project to do this?

I saw TiddlyWiki which is written in python, which I will look into borrowing their library, but in the meantime I figured there may be a project that's a bit more niche that someone knows?

Cheers

3

There are 3 answers

2
Evgeny On BEST ANSWER
0
Bryan On
0
James Wanchai On

pywikipedia i have found to be best