5
Desidero utilizzare Selenium Webdriver con un proxy che richiede l'autenticazione dell'utente. È possibile?Python Selenium Webdriver - Autenticazione proxy
questo è, quello che ho finora, ma non so dove mettere le credenziali (utente: passaggio @ Proxy: Porta)
from selenium import webdriver
profile = webdriver.FirefoxProfile()
profile.set_preference("network.proxy.type", 1)
profile.set_preference("network.proxy.http", "proxy")
profile.set_preference("network.proxy.http_port", "port_number")
profile.update_preferences()
driver = webdriver.Firefox(firefox_profile=profile)
driver.get('http://www.google.com')
driver.title
Hai mai trovato la soluzione? – ChairmanMeow
Ciao, sì ho finito per usare PhanomJS con Selenium: https://realpython.com/blog/python/headless-selenium-testing-with-python-and-phantomjs/ e http://phantomjs.org/api/command -line.html – Maecky
per utilizzare firefox con un'estensione, vedere questo: https://stackoverflow.com/a/39903614/955422 –