from selenium import webdriver option = webdriver.ChromeOptions() # 伪装iphone option.add_argument('--user-agent=iphone') # 伪装android # option.add_argument('--user-agent=android') driver = webdriver.Chrome(chrome_options=option)
driver.get("https://www.***.cn")
driver.quit()