GithubHelp home page GithubHelp logo

parkrun-parse's Introduction

parkrun-parse

parkrun-parse will parse multiple park run results, and generate two output files:

  • parkrun.csv - A CSV file containing multiple columns of results
  • parkrun.png - a line graph graphical representation of the results

Park Run results are aggregated on a per-minute finish time. This allows you to see the bell curve of finishers for a particular park run, and how it compares to other runs.

Requirements

Install the following three dependencies in order to run the code:

pip3 install bs4 --upgrade
pip3 install matplotlib --upgrade
pip3 install pandas --upgrade

Running the code

You can pass as many arguments as you need, with each argument pointing to a particular Park Run's latest results page:

python3 parkrun.py 'https://www.parkrun.org.uk/chelmsfordcentral/results/latestresults/' 'https://www.parkrun.co.za/goldenharvest/results/latestresults/' 'https://www.parkrun.org.uk/brentwood/results/latestresults/'

-- Complete --
I have created two output files: parkrun.csv and parkrun.png

Output

The output image will look like: alt text

In addition, there is also parkrun.csv which contains the raw data that can be imported into your favourite tool like Excel for further analyses.

parkrun-parse's People

Contributors

willie-engelbrecht avatar

Stargazers

 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.