Giter Site home page Giter Site logo

web-scraping-challenge's Introduction

web-scraping-challenge

GA Tech Data Science and Analytics Boot Camp Module 12

Description

This module utilizes new concepts, such as web scraping with BeautifulSoup and MongoDB, and former concepts like HTML, Bootstrap, and Flask to develop an application that will scrape data from four sites and display the data through a Flask application.

Part 1: Scraping

This module first starts with a Python Jupyter notebook in order to utilize BeautifulSoup, Pandas, and Requests/Splinter to scrape for data.

The four sites that data is scraped from include:

  • Mars Facts
    • Collect table containing facts about Mars

The code for the scraping script can be found here.

Part 2: MongoDB and Flask Application

Once the script works in Jupyter, it is then copied into a Python file in order for the script to be used by the Flask application. This code can be found in scrape_mars.py

The Flask application will then call to the scraping script in order to load and display the data in the browser. At the same time, the data is loaded into a MongoDB database named marsDataDB, collection marsData.

Additionally, an HTML template that utilizes Bootstrap is called into the Flask application in order to properly display the data.

The code for the Flask application can be found here, and the HTML template can be found here.

Here is the final application:

Submission Requirements

  • Jupyter notebook with scraping code
  • Screenshots of final application
  • Flask App with HTML template

web-scraping-challenge's People

Contributors

aimeevu 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.