Not working with closed wikis (user and password missing)
Make robots for MediaWiki-powered sites!
Brought to you by:
code_driller
DotNetBotFramework seems not able to communicate with "closed" wikis.
Seems like, there is the user name and password missing in method:
private void LoadGeneralInfo() { string src = GetWebPage(apiPath + "?action=query&format=xml" + "&meta=siteinfo&siprop=general|namespaces|namespacealiases|magicwords|" + "interwikimap|fileextensions|variables"); generalDataXml = XElement.Parse(src).Element("query");
Closed wikis require user name and password before they show any information.
What do you mean by "closed wikis"?
I think it's called "private" wiki?
See also:
http://www.mediawiki.org/wiki/Thread:Project_talk:Support_desk/Change_%22open_wiki%22_to_%22closed_wiki%22
http://www.mediawiki.org/wiki/Manual:Preventing_access#Simple_private_wiki
I have the same problem on a wiki installation.
You need to login first, to get access to the API.
Hope that helps?
I got it. Try calling LogIn() before LoadGeneralInfo() inside Initialize() function. It's on line 264 as of DotNetWikiBot 3.10.