How do you run headless chrome and a proxy using selenium in python?
问题 My python script has the headless chrome in selenium up and functional but how, if possible, can I use a proxy as well? How can I pass the proxy host port to my headless chrome browser? options = webdriver.ChromeOptions() options.add_argument('headless') browser = webdriver.Chrome(chrome_options=options) How do I use the proxy host port with selenium and mainly headless chrome? Thanks! 回答1: The simplest way to do is something like below. Put any ip address in the proxy variable to find out