python-3.x - 将 python 与 selenium webdriver 一起使用并不适用于每个无线连接
问题描述
当我在办公室使用它时(wifi 连接),我的脚本运行良好。但是当我回到家并使用我的个人 wifi 或任何其他 wifi 时,它不起作用......
请你帮助我好吗 ??
从 general.log 中提取
ERROR [2018-08-11 21:31:18] [mehdidouache] Message: Can not connect to the Service /Users/Mehdi/Desktop/InstaPy/assets/chromedriver
Traceback (most recent call last):
File "/Users/Mehdi/Desktop/InstaPy/instapy/instapy.py", line 299, in set_selenium_local_session
chrome_options=chrome_options)
File "/usr/local/lib/python3.6/site-packages/selenium/webdriver/chrome/webdriver.py", line 62, in init
self.service.start()
File "/usr/local/lib/python3.6/site-packages/selenium/webdriver/common/service.py", line 102, in start
raise WebDriverException("Can not connect to the Service %s" % self.path)
selenium.common.exceptions.WebDriverException: Message: Can not connect to the Service /Users/Mehdi/Desktop/InstaPy/assets/chromedriver
解决方案
推荐阅读
- c++ - 使用未定义类型“UTextBlock”UE4
- ruby-on-rails - 用同名的新模型替换旧模型
- docker - 无法从 docker-compose 启动 Tomcat
- c - 为什么函数只返回相乘的值?
- java - 如何在验证期间访问失败的 xsd 1.1 断言规则?
- c# - 在网络数据库中找不到可安装的 ISAM
- python - 将 json 数据下载到 Pandas df 中?
- mysql - 如果一列值为空,则按 laravel 中的另一列值排序
- mongodb - 如何在mongodb中加入2个集合
- python - 如何在 XGBoost 库的 plot_tree 函数中包含特征名称?