def __init__(self):
    basename = 'database.db'
    self.engine = create_engine(('sqlite:///%s' % basename), echo=False)
    if (not os.path.exists(basename)):
        Base.metadata.create_all(self.engine)
    f = open('page.txt', 'r')
    self.start = int(f.read())
    f.close()
    self.last_page = set()
def __init__(self):
    basename = 'database.db'
    self.engine = create_engine(('sqlite:///%s' % basename), echo=False)
    if (not os.path.exists(basename)):
        Base.metadata.create_all(self.engine)
    f = open('page.txt', 'r')
    self.start = int(f.read())
    f.close()
    self.last_page = set()