momcancode / web-scraping-NASA-mars-site

Use BeautifulSoup, Pandas, Splinter to scrape data from different NASA Mars sites

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Web Scraping Challenge - Mission to Mars

In this assignment, I've built a web application that scrapes various websites for data related to the Mission to Mars and displayed the information in a single HTML page.


Step 1 - Scraping

Complete the following scrapes using Jupyter Notebook, BeautifulSoup, Pandas, and Splinter.

NASA Mars News

JPL Mars Space Images - Featured Image

  • Visit the url for JPL Featured Space Image here.

  • Use splinter to navigate the site and find the image url for the current Featured Mars Image and assign the url string to a variable called featured_image_url.

Mars Facts

  • Visit the Mars Facts webpage here and use Pandas to scrape the table containing facts about the planet including Diameter, Mass, etc.

Mars Hemispheres

  • Visit the USGS Astrogeology site here

  • Use splinter to navigate the site to obtain high resolution images for each of Mar's hemispheres.


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

  • Use Pymongo for CRUD applications for the database.

  • Use Bootstrap to structure the HTML template.


Step 3 - Where to find the files

  1. The Jupyter Notebook containing the scraping code used.

  2. Screenshots of the final application.

  3. Flask app.

  4. Jinja template.


Contact:

Email: thao.ph.ha@gmail.com

About

Use BeautifulSoup, Pandas, Splinter to scrape data from different NASA Mars sites


Languages

Language:Jupyter Notebook 79.0%Language:Python 14.0%Language:HTML 7.0%