Flask web application that scrapes various websites for data related to the Mars Mission and displays the information in a single HTML page.
- Script collects the latest News Title and Paragraph Text.
- Script finds the image url for the current Featured Mars Image and assigns the url string of the full size image.
- Script visits the Mars Weather twitter account and scrapes the latest Mars weather tweet.
- Script visit the Mars Facts webpage and uses Pandas to scrape the table containing facts about the planet including Diameter, Mass, etc.
- Script visits the USGS Astrogeology site and obtains the full resolution images for each of Mar's hemispheres.
The MongoDB is currently hosted on the Database-as-a-Service https://mlab.com/. It requires a config.py file (hidden) using a driver via the standard MongoDB URI. The config.py contains a variable "authentication=" set to the MongoDB URI.
Alternatively, it can run locally. First, install MongoDB. Once MongoDB is installed run the command mondgod on bash. Don't forget to comment and uncomment the URI to use the local database only. Also comment out import config
.
- Modules Required
- pandas==0.23.3
- splinter==0.9.0
- pymongo==3.7.1
- numpy==1.15.0
- Flask==1.0.2
- requests==2.18.4
- beautifulsoup4==4.6.3
- gunicorn==19.9.0
- lxml==4.2.5
- Jinja2==2.10
- beautifulsoup4==4.6.3
- bs4==0.0.1
- Flask-PyMongo==2.1.0