How to write the selenium https proxy settings? it doesn't seem to work to use http directly. The code is as follows

how to write selenium https proxy settings. It seems not possible to use http directly

from selenium import webdriver

chromeOptions = webdriver.ChromeOptions()
chromeOptions.add_argument("ignore-certificate-errors")
chromeOptions.add_argument("--ignore-ssl-errors")
-sharp 
chromeOptions.add_argument("--proxy-server=http://101.236.55.145:8866")
-sharpchromeOptions.add_argument("--proxy-server=http://112.25.6.36:80")
-sharp =--proxy-server = http://202.20.16.82:10152
browser = webdriver.Chrome(chrome_options=chromeOptions,executable_path=r"F:\Program Files (x86)\webdriver\chromedriver.exe")

-sharp ip
-sharpbrowser.get("https://www.taobao.com/s?wd=ip")
browser.get("http://www.baidu.com/s?wd=ip")
print(browser.page_source)

-sharp 
-sharpbrowser.quit()
Mar.10,2022

can refer to this article, which not only sets up the proxy but also crawls the request content.
https://blog.csdn.net/five3/a.

Menu