Skip to content

Web application that scrapes various websites for data related to the Mission to Mars and displays the information in a single HTML page using BeautifulSoup, Requests, Selenium and MongoDB with Flask. | UT Data Analysis and Visualization Nov 2019 - May 2020.

Notifications You must be signed in to change notification settings

sheetalbongale/Web-Scraping-MongoDB

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Web Scraping - Mission to Mars

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

The technologies used in this project are:

BeautifulSoup | requests | Selenium | Splinter | MongoDB | Pandas

Websites scraped:

This challenge is done in 2 steps:

Step 1 - Scraping

Completed initial scraping using BeautifulSoup, Pandas, Requests, Selenium and Splinter.

Step 2 - MongoDB and Flask Application

Use MongoDB with Flask templating to create a new HTML page that displays all of the information that was scraped from the URLs above.

  • Created a route called /scrape that will import scrape_mars.py script and call the scrape function.
  • Store the return value in Mongo as a Python dictionary.
  • Created a root route / that will query your Mongo database and pass the mars data into an HTML template to display the data.
  • Created a template HTML file called index.html that will take the mars data dictionary and display all of the data in the appropriate HTML elements.

main_page content1 comtent2

About

Web application that scrapes various websites for data related to the Mission to Mars and displays the information in a single HTML page using BeautifulSoup, Requests, Selenium and MongoDB with Flask. | UT Data Analysis and Visualization Nov 2019 - May 2020.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published