Esempio n. 1
0
 def __init__(self):
     """
     Initializes database connection and sessionmaker.
     Creates deals table.
     """
     engine = db_connect()
     create_table(engine)
     self.Session = sessionmaker(bind=engine)
def all_artikels_url():
    engine = db_connect()

    Session = sessionmaker(bind=engine)
    session = Session()
    all_artikel = session.query(Artikel).all()
    only_url = [re.sub('[{}]','',url.artikel_link) for url in all_artikel]

    return only_url
def all_artikels_url():
    engine = db_connect()

    Session = sessionmaker(bind=engine)
    session = Session()
    all_artikel = session.query(Artikel).all()
    only_url = [re.sub('[{}]', '', url.artikel_link) for url in all_artikel]

    return only_url
def retrieve_images_url():
    engine = db_connect()

    Session = sessionmaker(bind=engine)
    session = Session()
    return session.query(Image).all()
Esempio n. 5
0
def retrieve_images_url():
    engine = db_connect()

    Session = sessionmaker(bind=engine)
    session = Session()
    return session.query(Image).all()