Red de conocimiento informático - Problemas con los teléfonos móviles - Cómo configurar e implementar la descarga de archivos Python Selenium en Chrome e IE

Cómo configurar e implementar la descarga de archivos Python Selenium en Chrome e IE

Configura el directorio de descarga: from?selenium?import?webdriver

chromedriver?=?/usr/bin/chromedriver"

chromeOptions?/usr/bin / chromedriver"

chromeOptions?=?webdriver.ChromeOptions()

prefs?=?{"download.default_directory":?"/path/download"}

chromeOptions.add_experimental_option("prefs",?prefs)

driver?=?webdriver.Chrome(executable_path= chromedriver,?chrome_options=chromeOptions)

Establecer proxy: desde?23.23 23.23:3128"?#?IP:PORT?o?HOST:PORT

chrome_options?=?webdriver.ChromeOptions()

chrome_options.add_argument('--servidor proxy = ")

IE es más o menos lo mismo.

Si resuelve tu problema, ¡acéptalo!

Si el problema aún no se puede resolver, continúa con el seguimiento.