try:import seleniumexceptModuleNotFoundError:%pip install seleniumimport osimport reimport numpy as npimport pandas as pdfrom tqdm.notebook import tqdm, trangefrom time import sleep, timefrom selenium import webdriverfrom selenium.webdriver.support.ui import Selectfrom selenium.webdriver.common.by import Byfrom selenium.webdriver.support.ui import WebDriverWaitfrom selenium.webdriver.support import expected_conditions as EC!rm log.txtdef print_it(*args, **kwargs):print(*args, **kwargs)withopen('log.txt', 'a') as f:print(*args, **kwargs, file=f)global_init = time()
rm: log.txt: No such file or directory
# Set up WebDriverop = webdriver.ChromeOptions()driver = webdriver.Chrome(options=op)# Navigate to the website and manually solve the CAPTCHAdriver.get("https://airquality.cpcb.gov.in/ccr/#/caaqm-dashboard-all/caaqm-landing")
Manually solve captcha before moving on to the next cell..