/mars-web-scraping

This project builds a web application that scrapes various websites for data related to the Mission to Mars and displays the information in a single HTML page. MongoDB is used with Flask to deploy results to an HTML page.

Primary LanguageJupyter Notebook


About This Project

This project builds a web application that scrapes various websites for data related to the Mission to Mars and displays the information in a single HTML page. MongoDB is used with Flask to deploy results to an HTML page.

Technologies & Methods:

Web Scraping:
image image image
Web Application:
image image image image image

Websites scraped:

Preview

Preview of '/scrape' function from scrape_mars.py:


Flask App

Screenshot of the web application in Flask:


How to Run The Application

  1. Ensure Flask is installed in the virtual environment: 'python -m pip install flask'.
  2. Clone this repository to save and run on your local machine.
  3. In the virtual environment, navigate to the 'Mission to Mars' folder.
  4. In the virtual environment, run the app by using the command'python app.py'
  5. To open your default browser to the rendered page, Ctrl+click the http://127.0.0.1:5000/ URL in the terminal.
  6. On the webpage, click 'Scrape New Data' button to generate a new set of Mars News headlines and images.

Contact

Lauren To: laurenemilyto@gmail.com