GithubHelp home page GithubHelp logo

ppai22 / cwc-2019-ball-by-ball-dataset Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 1.0 298 KB

Ball-by-ball data set generated out of the commentary data scraped for every match of the ICC Cricket World Cup 2019 from the ICC website

License: MIT License

Python 100.00%

cwc-2019-ball-by-ball-dataset's Introduction

CWC 2019 Ball-By-Ball Dataset

Ball-by-ball data set generated out of the commentary data scraped for every match of the ICC Cricket World Cup 2019 from the ICC website

Requirements

  • Python version: 3.7.4
  • Python modules: pandas, selenium, pynput, requests, time, bs4, collections
  • Executables: chormedriver (either in the same folder as the code or set in PATH)

Process followed

The file to be run is script.py. It uses Beautiful Soup, Requests and Selenium with Chrome webdriver to scrape text commentary from the official ICC site for the CWC 2019. The following data is fetched from the commentary:

  • Ball and over number
  • Runs scored or wicket in that ball
  • Text commentary for the ball as available

Further work to be done

  • Find another way to scroll down the commentary other than the current pynput to make the web scraping look more cleaner and implementation of headless chrome
  • Cleaning of the dataset formed and fetching features from commentary
  • Following features need to be or can be fetched: batsman, bowler, speed of the ball, type of ball, length of the ball, type of dismissal
  • Analyzing and understanding the data and providing visualization and easy way of fetching data using filters
  • Generate a shiny dahsboard for certain features in R for better visualization of the data

All data is available as published in the official ICC site for the CWC 2019. No part of this project will be used for commercial purposes by me and will solely be used for academic purposes.

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.