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.
Web Scraping:
Web Application:
Preview of '/scrape' function from scrape_mars.py:
Screenshot of the web application in Flask:
- Ensure Flask is installed in the virtual environment: 'python -m pip install flask'.
- Clone this repository to save and run on your local machine.
- In the virtual environment, navigate to the 'Mission to Mars' folder.
- In the virtual environment, run the app by using the command'python app.py'
- To open your default browser to the rendered page, Ctrl+click the http://127.0.0.1:5000/ URL in the terminal.
- On the webpage, click 'Scrape New Data' button to generate a new set of Mars News headlines and images.
Lauren To: laurenemilyto@gmail.com