selenium 添加浏览器配置
#-*-coding:utf-8-*-
from selenium import webdriver
from time import sleep
#火狐找到配置文件路径:帮助>故障排除信息>配置文件夹>显示文件夹
#应用场景,主要是做免登录操作
profileDir = "C:\Users\Administrator\AppData\Roaming\Mozilla\Firefox\Profiles\yn80ouvt.default"
profile = webdriver.FirefoxProfile(profileDir)
driver = webdriver.Firefox(profile)
# url = "https://www.baidu.com/"
url = "https://www.cnblogs.com/"
driver.get(url)
sleep(5)
driver.quit()