For-The-Wolf / zwift-scrape

Scrape race results from www.zwiftpower.com, also includes a score calculator for WTRL time trials.
GNU General Public License v3.0
9 stars 2 forks source link

Gap & teams in data #4

Open loicy opened 2 years ago

loicy commented 2 years ago

Hi again !

Is it possible to adapt the script to have the gap between the riders? Possibly also the team ;)

Sorry, I don't know much about python... ;(

For-The-Wolf commented 2 years ago

The gap between riders should be easy to calculate from the output but I can add it as a default column too :) I'll look into adding teams :)

loicy commented 2 years ago

The problem with calculating the gap is that the time is put into MS and takes the general time, so the gap is always 1 second, 2 seconds, etc.

loicy commented 2 years ago

The script only takes the data when the category is finished? I just tested on a race but it only takes the data when a category is finished.

Is there a possibility to scrap the data even when the race is in progress?

Actually, I use this script to scrap the data for a livestream.

For-The-Wolf commented 2 years ago

Yes it only works on a completed race as that was my use case - I should have some time this week to look at your first feature request, however as I am writing my thesis I don't really have the capacity to look into making it work on ongoing races, sorry!

You are of course welcome to fork the repo and have a go at making this work yourself and I'd be happy to pull it in if it works :)