Skip to content

Using Web Scraping to gather the most recent news articles about the planet Mars.

Notifications You must be signed in to change notification settings

RuthLD/Mission_to_Mars

Repository files navigation

Mission_to_Mars

🌔Using Web Scraping to collect infromation about Mars.

Overview

Using BeautifulSoup to visit and collect the most recent information about the plant Mars from four different websites.

  1. 📰 The first website was the NASA Mars News Site to get the featured news article title and description.
  2. 🖼️ The second website was to find the Featured Image from Mars.
  3. 🌡️ The third website was to get a table of weather facts from Mars compared to Earth.
  4. 🌓 The fourth website was to get images of the four hemispheres of Mars.

Results

The follow are examples returned from the scraping.py file.

  1. Example of Article Title and Description:
    • Img_1.png
  2. Example of Featured Image:
    • Img_2.png
  3. Example of Facts:
    • Img_3.png
  4. Example of Hemisphere Images:
    • Img_4.png

The images are returned as URLs to be used in the app.py file to create a simple webpage to scrape for the most recent news about Mars.

Webpage

The simple web page was created using MongoDB and Flask to scrape the web for the most recent news articles. The page html is here.