Thread:User talk:CodeCat/Parsing nl-verbs templates using a bot

Hello CodeCat,

I'm trying to parse Dutch verbs which use the module nl-verbs (https://en.wiktionary.org/wiki/Module:nl-verbs). However, the module generates quite a lot more information than is given to it and it would take some more than a couple lines of code to mimic it. It outputs HTML as a default which I could parse but this is a bit tedious. When searching through the source I saw the bot parameter (args["bot"]) being used to switch the output to a computer readable format. After lots of trying and searching I wasn't able to pass the parameter without an error message being thrown at me (https://en.wiktionary.org/w/api.php?action=expandtemplates&text=). After asking for help on the pywikibot IRC someone said that this could be due to some edit which restricts the parameters being passed: https://en.wiktionary.org/w/index.php?title=Module:nl-verbs&diff=32813469&oldid=32813334. As you can see, the bot key is missing in the newly defined params table (is that what you call an array in Lua?).

MewBot is also using this parameter to parse the templates: https://en.wiktionary.org/wiki/User:MewBot/nlverbformbot.py (look for: params["bot"] = "1") I would guess that your bot isn't fully functional or that I have found deprecated code or something.

Anyhow, could you help me get this parameter to work again. I'm not quite experienced in using Wiktionary/other wikis in this way and I would not like to mess something up that is used accross so many pages.

Thanks in advance.