Step 1 – Scraping

Complete your initial scraping using Jupyter Notebook, BeautifulSoup, Pandas, and Requests/Splinter.

NASA Mars News

# Example:

news_title = "NASA's Next Mars Mission to Investigate Interior of Red Planet"



news_p = "Preparation of NASA's next spacecraft to Mars, InSight, has ramped up this summer, on course for launch next May from Vandenberg Air Force Base in central California -- the first interplanetary launch in history from America's West Coast."

JPL Mars Space Images – Featured Image

# Example:

featured_image_url = 'https://www.jpl.nasa.gov/spaceimages/images/largesize/PIA16225_hires.jpg'

Mars Weather

# Example:

mars_weather = 'Sol 1801 (Aug 30, 2017), Sunny, high -21C/-5F, low -80C/-112F, pressure at 8.82 hPa, daylight 06:09-17:55'

Mars Facts

Mars Hemispheres

# Example:

hemisphere_image_urls = [

   {"title": "Valles Marineris Hemisphere", "img_url": "..."},

   {"title": "Cerberus Hemisphere", "img_url": "..."},

   {"title": "Schiaparelli Hemisphere", "img_url": "..."},

   {"title": "Syrtis Major Hemisphere", "img_url": "..."},

]

Step 2 – MongoDB and Flask Application

Use MongoDB with Flask templating to create a new HTML page that displays all of the information that was scraped from the URLs above.

final_app_part1.png final_app_part2.png

Step 3 – Submission

To submit your work to BootCampSpot, create a new GitHub repository and upload the following:

  1. The Jupyter Notebook containing the scraping code used.
  2. Screenshots of your final application.
  3. Submit the link to your new repository to BootCampSpot.

Hints