Giter VIP home page Giter VIP logo

mission_to_mars's Introduction

Mission to Mars


image

Overview

The mission of this project was to learn web scraping methods to extract information from the NASA Science Mars Exploration website using Chrome Developer tools to identify HTML components, Beautiful Soup/Splinter to automate a web browser and perform the scrape, MongoDB to store the data, and finally Flask to create a web application to display the data. Through the process, the goal was to develop an appt to scrape the following information about the planet Mars:

Deliverable 1: Scrape titles and preview text from Mars news articles. Optionally export the data into a JSON file or a MongoDB database.

Using Splinter automated browsing was used to visit the Mars news site. Then, I extracted the HTML code with Beautiful Soup. Next, I have scraped and extracted the titles and preview text of the news articles and stored them in a dictionary.

image

Finally, I exported the data to JSON file and saved it as mars.csv To see the full code written in this part check part_1_mars_news.ipynb

Deliverable 2: Scrape and analyze Mars weather data, which exists in a table.

Using Splinter automated browsing was used to visit the Mars temperature data site. I have extracted the HTML code with Beautiful Soup. Scraped and extracted the Mars temperature table into a Pandas DataFrame. Next. I have cleaned the table data by editing its data types

After extracting Mars temperature table, I used the table to analyze and visualize the data by finding answers to the following questions:

-How many months exist on Mars?

-How many Martian (and not Earth) days worth of data exist in the scraped dataset?

-What are the coldest and the warmest months on Mars (at the location of Curiosity)?

-Which months have the lowest and the highest atmospheric pressure on Mars?

-About how many terrestrial (Earth) days exist in a Martian year?

Average Minimum Temperature by Month on a mars.

image

To see the full code written in this part check part_2_mars_weather.ipynb

mission_to_mars's People

Contributors

madinalikes avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.