def __init__(self, screenName): XMLAPIFunction.__init__(self, "http://twitter.com/users/show.xml") self.url += "?screen_name=" + HttpUtility.UrlEncode(screenName) self.inUser = False self.currentField = None self.user = None self.inStatus = False
def __init__(self, listOwner, listName): XMLAPIFunction.__init__(self, "http://api.twitter.com/1/%s/%s/members.xml" % (listOwner, listName)) self.inUser = False self.members = [] self.currentField = None self.currentMember = None self.nextCursor = "-1" self.inNextCursor = False
def __init__(self, functionName): XMLAPIFunction.__init__(self, twfyURL % functionName)
def getData(self): while self.nextCursor != "" and self.nextCursor != "0": XMLAPIFunction.getData(self, userName, password, {"cursor" : self.nextCursor}) return self
def getData(self): return XMLAPIFunction.getData(self, userName, password)