GithubHelp home page GithubHelp logo

jamielynethorpe / web-scraping-challenge Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 215 KB

In this challenge a web application was built to scrape various websites for data related to the Mission to Mars. The results are stored in MongoDB. A Flask application was used to render the scraped data. Finally, the single HTML page displays the information.

Python 14.05% Jupyter Notebook 75.75% HTML 10.20%

web-scraping-challenge's Introduction

Web-Scraping-Challenge

mission_to_mars

Background

  • A project designed to show the latest data about Mars on a web page through the use of web scraping, MongoDB, and Flask.

NASA Mars News

  • Scrape the NASA Mars News Site and collect the latest News Title and Paragraph Text.

JPL Mars Space Images - Featured Image

  • Visit the url for JPL Featured Space Image and scrape to find the image url for the current Featured Mars Image and assigns to the url string of the full-size image.

Mars Weather

  • Visit the Mars Weather twitter account and scrape the latest Mars weather tweet.

Mars Facts

  • Visit the Mars Facts webpage and use Pandas to scrape the table containing facts about the planet including Diameter, Mass, etc.

  • Use Pandas to convert the data to a HTML table string.

Flask Application

  • Created a python script to run all of the scraping code and all of the scraped data was put into one Python Dictionary

  • Created next, '/scrape' route which will import the Python script and call the scrape function

MongoDB Application

  • A new database and collection was created.
  • In the created database all of the scraped data was stored
  • Created a root route / which queried the Mongo database and passed the mars data into an HTML template to display the data.

HTML and BootStrap Application

  • Created an HTML file to display all of the data.

web-scraping-challenge's People

Contributors

jamielynethorpe avatar

Stargazers

 avatar

Watchers

James Cloos avatar  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.