Example #1
0
def scrapeMars():
    marsData = scrape_mars.scrapeMars()
    scrape_mars.storeInDb(marsData)
    return redirect("/")
Example #2
0
def scrapeMars():
    marsData = scrape_mars.scrapeMars()
    scrape_mars.storeInDb(marsData)
    data = scrape_mars.getData()
    return render_template('scrapeMars.html', data=data)
Example #3
0
def scrape():
    db.mars_data.remove({})
    data = scrapeMars()
    print(data)
    coll.insert(data)
    return redirect("/", code=302)