def __init__(self, database=None, table='spider_queue'): self.q = JsonSqlitePriorityQueue(database, table) self.q2 = []