请教下PYTHON 如何调用遨游浏览器
使用selenium的话,使用chromedriver只能打开遨游浏览器但是无法输入网址
from selenium.webdriver.chrome.options import Options
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
import time
__browser_url = r'C:Program Files (x86)Maxthon5BinMxStart.exe' ##360浏览器的地址
__browser_url = r'C:UsersserwerAppDataLocal360ChromeChromeApplication360chrome.exe'
chrome_options = Options()
chrome_options.binary_location = __browser_url
driver = webdriver.Chrome(chrome_options=chrome_options)
print('stope1')
driver.get('https://www.baidu.com')
print('stop2')
driver.find_element_by_id("kw").send_keys("seleniumhq" + Keys.RETURN)
driver.quit()
不如用chrome吧 附链接:https://pan.baidu.com/s/1edMf6I 密码:u5xh