DEV Community

Discussion on: Automate Cowin Vaccine slots Availablity using Python

Collapse
 
grizzlysmit profile image
Francis Grizzly Smit

why not use selenium

to drive a real web browser and achieve the same results
i.e.

import selenium
from selenium import webdriver
from selenium.webdriver.support.ui import Select
from selenium.webdriver.firefox.options import Options
...
....
options = Options()
options.add_argument('-headless') # makes it run without opening 
                                                               # the browser window
driver = webdriver.Firefox(options=options)
driver.get(url)
Enter fullscreen mode Exit fullscreen mode

There is a chromium driver too, but I have only experience with the firefox version