Skip to content

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

Notifications You must be signed in to change notification settings

momcancode/web-scraping-NASA-mars-site

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 

Repository files navigation

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published