This project used BeautifulSoup and Splinter in python to scrape full-resolution images of Mars’s hemispheres and the titles of those images. The Mars Facts were summarized using pd.read_html. The scraped data were stored on a Mongo database, and a web application in python (Flask) was used to display the data, and alter the design of the web app using Bootstrap 3 to accommodate these images.
Pandas, BeautifulSoup, Splinter, ChromeDriverManager, Flask, PyMongo, MongoDB, HTML5, Bootstrap 3
The image URLs and titles of Mars's hemispheres were add a dictionary.
Code was added to a scraping.py file. Mongo database was updated and index.html file modified so the webpage contains all the information collected, including the full-resolution image and title for each hemisphere image.
- Changed "Scrape New Data" to "btn-warning" style.
- Obtained code for "Mars Facts" table from "pd.to_html". Online resources were consulted for changing the table background and style as hover with yellow highlight.
- Mars Hemispheres aligned in one row.