You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
See title, I'm working on an application that scrapes this website using UC but I'm being blocked by Cloudflare. Below is my code for UC setup and scraping.
defrecreation_park_18_scraper(self, numPlayers, date, startTime, endTime):
print('Starting Recreation Park 18 web scraper...')
url=f'https://letsgo.golf/recreation-park-golf-course-18/teeTimes/recreation-park-golf-course-18-california?date={date}&qty={numPlayers}'print(url)
locationName='Recreation Park Golf Course 18'try:
self.driver.get(url)
print(self.driver.page_source)
result=self.wait.until(EC.presence_of_element_located((By.CSS_SELECTOR, ".reservation-group-item")))
events=self.driver.find_elements(By.CSS_SELECTOR, ".reservation-group-item")
exceptTimeoutExceptionaserr:
print(f"Waiting for presence of .reservation-group-item timed out. The element may not exist on the page.")
print(err)
returnexceptExceptionaserr:
print(err)
return
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
See title, I'm working on an application that scrapes this website using UC but I'm being blocked by Cloudflare. Below is my code for UC setup and scraping.
Example failing URL:
https://letsgo.golf/recreation-park-golf-course-18/teeTimes/recreation-park-golf-course-18-california?date=2023-09-15&qty=4
Beta Was this translation helpful? Give feedback.
All reactions