« Return to Thread: wikipedia.NoPage problem

wikipedia.NoPage problem

by Ganesh Krishnamurthy :: Rate this Message:

Reply to Author | View in Thread

Hello all,

I am running a bot on Tamil wikipedia (ta.wikipedia.org). All gets are
giving me a wikipedia.NoPage error and are not picking up any text.

For example,

        self.stattext = ""
        self.statpage = wikipedia.Page(site=self.site,
title="User:Ganeshbot/Created2")
        try:
            self.stattext = self.statpage.get()
        except:
            print "Unexpected error:", sys.exc_info()[0]

            print "stat page does not exist"

The page, User:Ganeshbot/Created2 does exist. But still Python is going into
exception and returning Nopage.

I am using Windows XP sp2, IE7, Python 2.5. Please help.

Regards, Ganesh
_______________________________________________
Wikibots-l mailing list
Wikibots-l@...
http://lists.wikimedia.org/mailman/listinfo/wikibots-l

 « Return to Thread: wikipedia.NoPage problem

LightInTheBox - Buy quality products at wholesale price!