Giter Site home page Giter Site logo

trellixvulnteam / web-scraping---data-mining_mf9q Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jonas-albaira/web-scraping---data-mining

0.0 0.0 0.0 46.38 MB

A python project that returns SHOOTOUT results in a single NHL game of a player via a csv file.

JavaScript 0.07% C++ 0.29% Python 89.54% C 3.97% Fortran 0.02% Tcl 3.62% PowerShell 0.02% XSLT 0.43% CSS 0.02% HTML 1.55% Smarty 0.01% Batchfile 0.01% Jupyter Notebook 0.10% Cython 0.35%

web-scraping---data-mining_mf9q's Introduction

*ORIGINAL AUTHOR: NEIL SEAWARD: https://github.com/sealneaward/template-py/

Purpose

A python project that returns SHOOTOUT results in a single NHL game of a player via a csv file.

Setup - Windows

  1. *REFER TO AUTHOR'S INSTRUCTIONS: https://github.com/sealneaward/template-py/blob/master/README.md#windows-setup

  2. In the project root folder (SOFE-4620-Assignment-1), run cmd as admin to create a Virtual Environment

     pip install virtualenv virtualenvwrapper
     virtualenv venv
     venv\Scripts\activate
     pip install -r requirements.txt
     deactivate
    
  3. Skip DB installation

  4. Install additional modules:

    pandas matplotlib requests

     pip install pandas
    

Usage Example

Scrape data for game Tampa vs Philadelphia

          home  away
attempts     0     0
scores       0     0

Returns shootout results during the game.

*Since it didn't go to shootout, results show 0


Code Instructions to Retrieve Data

  1. Open Developer Tools > Network > XHR > pageWithAPIData

  2. To retrieve HEADER info to be put on the HEADER function of the application: Refer to the image below:

    alt text

  3. To retrieve data from the API (in this case shootout info): Refer to the image below:

    alt text

    Dates > 0 > games > lineScore > shootoutInfo

  4. Run application. Saves automatically to a csv file

web-scraping---data-mining_mf9q's People

Contributors

jonas-albaira avatar trellixvulnteam 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.