嗨,我想运行下一个脚本,但 selenium-wire 不起作用,有人可以帮助我吗?
代码:
from seleniumwire import webdriver
import time
options = {
'proxy': {
'http': 'http://user:pass@ip:port',
'https': 'https://user:pass@ip:port',
'no_proxy': 'localhost,127.0.0.1'
}
}
path = "C:/Program Files (x86)/chromedriver.exe"
driver = webdriver.Chrome('path', seleniumwire_options=options)
driver.get('http://whatismyipaddress.com')
time.sleep(8)
driver.quit()
错误信息:
Traceback (most recent call last):
File "C:\Users\gomez\AppData\Roaming\JetBrains\PyCharmCE2021.2\scratches\scratch.py", line 1, in <module>
from seleniumwire import webdriver
ModuleNotFoundError: No module named 'seleniumwire'
点子列表: