MwansaMwango / web-scraping-challenge

A web application that scrapes various websites for data related to the Mission to Mars and displays the information in a single HTML page.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Mission to Mars

A web application that scrapes various websites for data related to the Mission to Mars and displays the information in a single HTML page.

mission_to_mars

Data Sources

Mars data is on the home page /index page is scraped from various sources:

Back End

The flask framework is used to create an app with scrapped data is stored in a MongoDB NoSQL database

Front End

Front end index.html uses flask html template for rendering.

Bootstrap is used for styling and html structuring.

Routes

  • Home page - '/' served by index.html
  • Scrap button - '/scrape' when clicked executes the 'scrape' function defined in the app.py server.

Running the app

Running app required local MongoDB running with a new mission_to_mars_db created.

Navigate to app.py and run python file to fire up the flask app.

Remember to start the mongoDB on your local machine by typing "mongod" in your command line.

About

A web application that scrapes various websites for data related to the Mission to Mars and displays the information in a single HTML page.


Languages

Language:Jupyter Notebook 53.9%Language:Python 31.4%Language:HTML 14.7%