Jump to content


From Meta, a Wikimedia project coordination wiki
using System;
using System.IO;
using System.Text;
using System.Text.RegularExpressions;
using System.Collections;
using System.Xml;
using DotNetWikiBot;

class MyBot : Bot
    /// The entry point function. Start coding here.
    public static void Main()
        // Here are some code examples:

        Site enWP = new Site("http://en.wikipedia.org/", "USERNAME", "PASSWORD");
	    	Page pl = new PageList(enWP);
	    	xPage curp = new xPage(pl[i]);	    	
	    	History h = curp.history;
	    	User cur_user = h.getFirst().user;