Skip to content

Latest commit

 

History

History
60 lines (43 loc) · 3.73 KB

README.md

File metadata and controls

60 lines (43 loc) · 3.73 KB

HTML Web scraping on Mars data to create a Flask web application using Python, Beautiful Soup, Splinter and MongoDB

Mission-to-Mars

Overview

To develop an app to webscrape the following information about the planet Mars from NASA Science Mars Exploration websites:

  • Latest News
  • Featured Image
  • Facts about the planet
  • Images of the hemispheres

Resources

Results:

**Task 1

  • Used Chrome Developer tools to identified HTML components,
  • Using Beautiful Soup/Splinter to automate a web browser and perform the scrape:
    • webscrapped and retrieved latest news about Mars, feature image and facts about the planet
    • scrapped full-resolution images of Mars’s hemispheres and the titles of those images.
  • MongoDB to store the data,
  • Flask to create a web application to display the data.

Initial App Design Screen Shot 2022-01-03 at 1 13 12 AM Screen Shot 2022-01-03 at 1 13 44 AM Screen Shot 2022-01-03 at 1 14 04 AM

Task 2

  • Changed Bootstrap 3 components to customize the view of the page:
    • Updated the color and size of the scrape button from btn btn-warning btn-xs to btn btn-default btn-lg
    • Added the hemisphere images as thumbnails in a single row by changing the grid from col-md-6 to col-md-3.

Screen Shot 2022-01-03 at 2 01 28 AM

Screen Shot 2022-01-03 at 2 01 49 AM

  • Used the Bootstrap 3 grid system to update the index.html file so that the website is mobile-responsive.
  • Tested the responsiveness of the website using the DevTools.

iPad Pro

Screen Shot 2022-01-03 at 2 56 46 AM

Pixel 2XL

Screen Shot 2022-01-03 at 2 57 19 AM

Screen Shot 2022-01-03 at 2 57 44 AM

Screen Shot 2022-01-03 at 2 58 05 AM

Screen Shot 2022-01-03 at 2 58 44 AM

Screen Shot 2022-01-03 at 2 59 00 AM

Screen Shot 2022-01-03 at 2 59 16 AM