Exemple #1
0
def scrape():
    mars_info= mongo.db.mars_info
    mars_data = scrape_mars.Mars_Weather()
    mars_data = scrape_mars.mars_hemsiphere()
    mars_data = scrape_mars.Mars_Facts()
    mars_data=scrape_mars.Mars_Images()
    mars_info.update({},mars_data,upsert=True)
    return redirect("/", code=302)
Exemple #2
0
def scrape():
    mars_var = scrape_mars.NASA_Mars_News()
    mars_var = scrape_mars.Featured_Image()
    mars_var = scrape_mars.Mars_Weather()
    mars_var = scrape_mars.Mars_Facts()
    mars_var = scrape_mars.Mars_Hemispheres()

    mongo.db.collection.update({}, mars_var, upsert=True)

    return redirect("/")
def scrape():
    collection.insert_many(scrape_mars.mars_news())
    collection.insert_many(
            [
                {'featured_img_full':
                scrape_mars.JPL_images()}
            ]
            )
    collection.insert_many(scrape_mars.Mars_Facts())
    collection.insert_many(scrape_mars.Mars_Hemispheres())
    return redirect("/")
Exemple #4
0
def scrape():

    mars = mongo.db.mars
    mars_info = scrape_mars.Mars_News()
    mars_info = scrape_mars.Mars_Image()
    mars_info = scrape_mars.Mars_Weather()
    mars_info = scrape_mars.Mars_Facts()
    mars_info = scrape_mars.Mars_Hem()
    mars.update({}, mars_info, upsert=True)

    # return redirect("/")
    return redirect("/")
Exemple #5
0
def scrape():
    mars = mongo.db.mars
    mars_data = scrape_mars.scrape()
    mars.update({}, mars_data, upsert=True)
    mars_data = scrape_mars.Mars_Space_Images()
    mars.update({}, mars_data, upsert=True)
    mars_data = scrape_mars.Mars_Facts()
    mars.update({}, mars_data, upsert=True)
    mars_data = scrape_mars.Mars_Hemispheres()
    mars.update({}, mars_data, upsert=True)

    return redirect("/", code=302)