Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while True:
- html = driver.page_source
- html_soup = soup(html, "html.parser")
- hour_container = html_soup.findAll("li",{"class":"available"})
- if hour_container:
- for hours in hour_container:
- driver.find_element_by_class_name("available").click()
- html = driver.page_source
- html_soup = soup(html, "html.parser")
- hour_container = html_soup.findAll("li", {"class": "available"})
- if not hour_container:
- break
- driver.refresh()
- time.sleep(5)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement