Menu

#98 Not working with closed wikis (user and password missing)

closed-fixed
nobody
None
2015-04-08
2013-12-11
debugger
No

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.

Discussion

  • CodeDriller

    CodeDriller - 2013-12-11

    What do you mean by "closed wikis"?

     
  • CodeDriller

    CodeDriller - 2014-02-11

    I got it. Try calling LogIn() before LoadGeneralInfo() inside Initialize() function. It's on line 264 as of DotNetWikiBot 3.10.

     
  • CodeDriller

    CodeDriller - 2015-01-24
    • status: open --> closed-fixed
     

Log in to post a comment.