Search code examples
databasemediawikiwikibotswikipedia

Private MediaWiki wiki and a bot to create pages


I have a private wiki running in localhost. I use MediaWiki 1.19 and I have to insert nearly 100 pages in MediaWiki's database.

I've tried pywikibot but it doesn't work: I've got trouble about login. I've spent a few hours without finding where is the problem. I've tried the MediaWiki bulk creator: when I run the php script, all seems ok but no page is created.

Do you know if a bot can be used with the MediaWiki's last version in localhost?

Maybe I can write to the database directly? The documentation isn't very clear about that.

Have you got any idea to create pages automatically? Or do you know a bot (any langage accepted) that works with the latest version?


Solution

  • Use the maintenance/edit.php command-line script if you're on the same machine, don't change the database manually.