WikiTeam / wikiteam

Tools for downloading and preserving wikis. We archive wikis, from Wikipedia to tiniest wikis. As of 2024, WikiTeam has preserved more than 600,000 wikis.
https://github.com/WikiTeam
GNU General Public License v3.0
719 stars 149 forks source link

Wiki engine detector: getWikiEngine() #150

Closed emijrp closed 10 years ago

emijrp commented 10 years ago

I'm adding a function 9553e3550cb95f54305be16ddb70cc00fe77cae9 to detect which wiki engine is running a site. By now it detects MediaWiki, MoinMoin and DokuWiki. It is pretty simple, help is welcome.

Run like this: python dumpgenerator.py https://wiki.debian.org --get-wiki-engine Returns: MoinMoin No version included by now.

Some links to discover new wikiengines and sites using them:

This may help as a first approach for expanding the downloader to other wiki engines.

emijrp commented 10 years ago

The involved function is getWikiEngine().

This is a very easy task, just regexps and a bit of HTML research for every wiki engine.

I leave this for those who want to starting help WikiTeam.