oops
This commit is contained in:
@@ -115,6 +115,7 @@ class Race:
|
|||||||
if self.url != "None":
|
if self.url != "None":
|
||||||
full_url = "https://www.procyclingstats.com/" + self.url
|
full_url = "https://www.procyclingstats.com/" + self.url
|
||||||
|
|
||||||
|
self.scraper = cloudscraper.create_scraper()
|
||||||
req = self.scraper.get(full_url)
|
req = self.scraper.get(full_url)
|
||||||
html = req.text
|
html = req.text
|
||||||
soup = BeautifulSoup(html, "html.parser")
|
soup = BeautifulSoup(html, "html.parser")
|
||||||
|
|||||||
Reference in New Issue
Block a user