Compare commits

...

2 Commits

Author SHA1 Message Date
cube
f16e75731c Merge branch 'main' of https://tea.cubes.link/cube/pcs_live 2026-05-31 15:01:54 +01:00
cube
eab1caa325 for testing 2026-05-31 15:01:53 +01:00

View File

@@ -11,9 +11,9 @@ class LiveStats:
# it also gets rid of all the horrible polygon stuff
def refresh_races(self):
# the entire front page of PCS loaded into soup
req = requests.get("https://www.procyclingstats.com/")
html = req.text
soup = BeautifulSoup(html, "html.parser")
self.req = requests.get("https://www.procyclingstats.com/")
self.html = self.req.text
soup = BeautifulSoup(self.html, "html.parser")
# narrow it down to the little green live stats boxes showing us what
# races are currently live