Giter Club home page Giter Club logo

hammers-pain's Introduction

Overview

This repo will analyse whether the number of injuries a football player experiences throughout their career increases after moving to West Ham.

To run, you must specify via CLI the player name of interest (in lower case, hyphen separated), along with their transfermarkt ID. I plan to add utility for determining the ID from the name at some point.

An example of a valid run configuration is

python dataScrape.py andy-carroll 48066
Name ID
andy-carroll 48066
kieron-dyer 3118
robert-snodgrass 22614
manuel-lanzini 135853

Pipeline

This project is supported with a pipeline provided by Gitlab which makes use of a specific gitlab-runner hosted on my PC. This saves me costs on outsourcing to a cloud provider, and allows me to use a local image.

If you make a commit to this repo, and wish to trigger the pipeline, my runners will need to be running - otherwise the pipeline job will stall!

The use of a local gitlab-runner is not optimal for co-development, but it's not something I've used before, so I saw this project as an opportunity to try it out. In future I may implement a better solution for CI.

NOTE

This project is far from finished. I am slowly working on it in my spare time, but please appreciate this is not a "released" version, or an accurate representation of the highest level to which I can code (well...)

tldr; this is a work in progress!

TODO

  • utility for looking up tfmarkt ID from player name
  • accept list of players as arg
  • investigate gitlab runners - if we use our own image, where will we store it, and will it cost money
  • tighten security in general
  • tidy dataScrape.py into functions, it's a massive mess
  • write proper tests
  • add mechanism to scrape multiple pages of injury history (so plots are actually correct)

hammers-pain's People

Contributors

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