def __init__(self, user_id, start_line=1): BaseFollowerFile.__init__(self, user_id) # Obtain a copy of the file and read all the contents in memory self.local_copy = download(user_id, 'fws') self.item_size = struct.calcsize("!Q") self.local_copy.seek(0, 2) self.length = self.local_copy.tell() / self.item_size
def __init__(self, user_id, start_line=1): BaseFollowerFile.__init__(self, user_id)