from selenium import webdriveroptions = webdriver.ChromeOptions()PROXY = "185.136.232.243:80"options.add_extension("~/Downloads/Proxy Auto Auth.crx")options.add_argument("--proxy-server=http://{}".format(PROXY))driver = webdriver.Chrome(chrome_options=options)driver.get("chrome-extension://ggmdpepbjljkkkdaklfihhngmmgmpggp/options.html")driver.find_element_by_id("login").send_keys("user")driver.find_element_by_id("password").send_keys("password")driver.find_element_by_id("retry").clear()driver.find_element_by_id("retry").send_keys("2")driver.find_element_by_id("save").click()driver.get("http://tarunlalwani.com")
使用以下扩展程序下载扩展程序
https://chrome.google.com/webstore/detail/get-
crx/dijpllakibenlejkbajahncialkbdkjc/related
https://chrome.google.com/webstore/detail/proxy-auto-
auth/ggmdpepbjljkkkdaklfihhngmmgmpggp?utm_source=gmail
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)