Mission2Mars is a web site with information about Mars collected from various sites (NASA, twitter, space-fact.com and astrology.usgs.gov). Every time the user requests it, the information is refreshed. This projects was created to practice Beautiful Soup scraping, Splinter, Mongo DB, Flask and Jinja.
- Obviously you will need python; Jupyter Notebooks is optional (the same code is in files "mission_to_mars.ipynb" and "scrape_mars.py").
- For any additional libraries, please check requirements.txt
- You should have MongoDB installed, up and running in your system.
- File "chromedriver.exe" should be downloaded in your system and its path should be added to your system PATH or you should copy the file in the local directory in which you copied the GitHub repo.
Download "Mission2Mars" GitHub repo to a local directory
- Start your python enviornment
- Execute file "mars_site.py", this file will invoke all necessary code from other python or HTML files.
- The first time you execute the program in your system, the web site will come up empty.
- Click on button "Scrape New Data", the necessary code will be executed to bring new information. Since this information will be stored in a local Mongo database, any further execution will come up showing data.
- Thank you to StackOverflow who cleared many doubts and provided code snippets
- Thank you to John Hawkins who answered my question and unstucked me
v 1.0
- Martha Aguilar