Compare commits
2 Commits
95d14dd48e
...
f16e75731c
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f16e75731c | ||
|
|
eab1caa325 |
@@ -11,9 +11,9 @@ class LiveStats:
|
|||||||
# it also gets rid of all the horrible polygon stuff
|
# it also gets rid of all the horrible polygon stuff
|
||||||
def refresh_races(self):
|
def refresh_races(self):
|
||||||
# the entire front page of PCS loaded into soup
|
# the entire front page of PCS loaded into soup
|
||||||
req = requests.get("https://www.procyclingstats.com/")
|
self.req = requests.get("https://www.procyclingstats.com/")
|
||||||
html = req.text
|
self.html = self.req.text
|
||||||
soup = BeautifulSoup(html, "html.parser")
|
soup = BeautifulSoup(self.html, "html.parser")
|
||||||
|
|
||||||
# narrow it down to the little green live stats boxes showing us what
|
# narrow it down to the little green live stats boxes showing us what
|
||||||
# races are currently live
|
# races are currently live
|
||||||
|
|||||||
Reference in New Issue
Block a user