用浏览器可以打开网页 用selenium就打不开
浏览器用selenium打不开,是用浏览器就可以打开网页了吗?前几天还反正常...要怎么反反爬虫?
程序代码:
#===========所有使用的包======================== from datetime import datetime, date from webdriver_manager.chrome import ChromeDriverManager import time from selenium import webdriver from selenium.webdriver.support.ui import Select from selenium.webdriver.support import expected_conditions as EC from viewstate import ViewState #================所有使用的包==================== ua = 'Mozilla/5.0 (Windows NT 13.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.45 Safari/537.36 Edge/96.0.1054.34' options = webdriver.ChromeOptions() options.add_argument("user-agent={}".format(ua)) driver = webdriver.Chrome(ChromeDriverManager().install(),options=options) driver.get('https://register.') driver.implicitly_wait(20)