jimmyday12 / fitzRoy

A set of functions to easily access AFL data
https://jimmyday12.github.io/fitzRoy
Other
129 stars 27 forks source link

Proposal: should we scrape Footywire round numbers instead of calculating them? #130

Closed cfranklin11 closed 4 years ago

cfranklin11 commented 4 years ago

With all of the complications and exceptions introduced by the irregular fixture this year, I'm wondering if we shouldn't replace the week-based round calculations with scraping round numbers directly from footywire.com. The scraper that I wrote before using fitzRoy did just that, so I have some experience with the tradeoffs involved.

My assessment of the pros and cons of changing to scraping round numbers are as follows:

Pros:

Cons:

There are probably others that I'm not thinking of, so happy to get feedback on this proposal. I'm also happy to take on the task of implementing it if others think it's worth doing.

jimmyday12 commented 4 years ago

@cfranklin11 Yes I think this needs to happen. I have somewhat mitigated issues by adding get_afl_fixture and get_footywire_match_results but ideally we could fix this at the source. I'm very keen to avoid any hardcoded fixes where possible.

I did have a quick look at trying to extract and assign the round to matches but realised it was going to be challenging so haven't revisited it. I'm more than happy for you to take this on!

I've also got some general ideas for re-structuring the functions in the package moving forward, I might share that in a new ticket for feedback and discussion. It shouldn't affect anything here but just figured I'd mention it