5
사용자 인증이 필요한 프록시로 Selenium Webdriver를 사용하고 싶습니다. 이것이 가능한가? (: 패스 @ 프록시 : 사용자 포트)Python Selenium Webdriver - 프록시 인증
이 내가 지금까지 가지고,하지만 난 자격 증명을 넣을 위치를 모르는 무엇 것은
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
해결책을 찾았습니까? – ChairmanMeow
안녕하세요, 저는 Selenium과 함께 PhanomJS를 사용했습니다. https://realpython.com/blog/python/headless-selenium-testing-with-python-and-phantomjs/ 및 http://phantomjs.org/api/command -line.html – Maecky
확장자가있는 firefox를 사용하려면 다음을 참조하십시오. https://stackoverflow.com/a/39903614/955422 –