开发者社区> 问答> 正文

一直,但是没找到错 ?

Traceback (most recent call last):<br>
  File "E:/寒假 python/12306.py", line 248, in <br>
    huoche.start()<br>
  File "E:/寒假 python/12306.py", line 177, in start<br>
    self.driver=Browser(driver_name=self.driver_name,executable_path=self.executable_path)<br>
  File "E:\anaconda\lib\site-packages\splinter\browser.py", line 64, in Browser<br>
    return driver(*args, **kwargs)<br>
  File "E:\anaconda\lib\site-packages\splinter\driver\webdriver\firefox.py", line 78, in <strong>init</strong><br>
    **kwargs<br>
TypeError: <strong>init</strong>() got an unexpected keyword argument 'options'<br>
  这种错怎么解决</p>

<pre><code></code></pre>

展开
收起
爱吃鱼的程序员 2020-08-21 15:08:24 455 0
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB

    你有没有安装对webdriver的驱动和firefox浏览器。

    看看我的爬虫一些介绍https://blog.csdn.net/u012111465/article/category/7051776
    爬虫工具安装,这些成功了,爬虫一般也没啥问题,还有就是找对元素:https://blog.csdn.net/u012111465/article/details/80634625
    最最重要的就是安装chrome浏览器以及浏览器对应的chromedrive,一定要对应

    2020-08-21 15:08:39
    赞同 展开评论 打赏
问答分类:
问答地址:
问答排行榜
最热
最新

相关电子书

更多
低代码开发师(初级)实战教程 立即下载
冬季实战营第三期:MySQL数据库进阶实战 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载