爬取需要登录信息的网站是,使用selenium进行模拟登录,在输入完手机验证码后,网站跳转到输入登录信息之前的界面。求怎么办
driver=webdriver.Chrome()
driver.get('https://www.xingtu.cn/ad/creator/index')
time.sleep(2)
botton1=driver.find_element_by_class_name('id-item-container')
botton1.click()
time.sleep(2)
botton2=driver.find_element_by_class_name('mobile')
botton2.click()
time.sleep(2)
phone_number_place=driver.find_element_by_name('mobile')
phone_number_place.send_keys('17612057003')
password_place=driver.find_element_by_name('mobilecaptcha')
botton3=driver.find_element_by_class_name('account-center-code-captcha')
botton3.click()
password=input('输入你的验证码')
password_place.send_keys(password)
botton4=driver.find_element_by_class_name('account-center-action-button')
botton4.click()
time.sleep(10)
你好,我是有问必答小助手,非常抱歉,本次您提出的有问必答问题,技术专家团超时未为您做出解答
本次提问扣除的有问必答次数,已经为您补发到账户,我们后续会持续优化,扩大我们的服务范围,为您带来更好地服务。
driver=webdriver.Chrome()
driver.get('https://www.xingtu.cn/ad/creator/index')
time.sleep(2)
botton1=driver.find_element_by_class_name('id-item-container')
botton1.click()
time.sleep(2)
botton2=driver.find_element_by_class_name('mobile')
botton2.click()
time.sleep(2)
phone_number_place=driver.find_element_by_name('mobile')
phone_number_place.send_keys('17612057003')
password_place=driver.find_element_by_name('mobilecaptcha')
botton3=driver.find_element_by_class_name('account-center-code-captcha')
botton3.click()
password=input('输入你的验证码')
password_place.send_keys(password)
botton4=driver.find_element_by_class_name('account-center-action-button')
botton4.click()
time.sleep(10)