首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法安装ABP爬虫

无法安装ABP爬虫
EN

Stack Overflow用户
提问于 2015-06-19 19:10:13
回答 1查看 91关注 0票数 1

当我试图安装when爬虫时会出现错误(下面是Repository)。

https://github.com/adblockplus/abpcrawler

运行命令时

代码语言:javascript
复制
./run.py -b /usr/bin/firefox urls.txt outputdir

我收到以下错误:

代码语言:javascript
复制
bash-3.2# ./run.py -b /usr/bin/firefox urls.txt outputdir
Communicating with client on port 29922
['/usr/bin/firefox', '--crawler-port', '29922', '-foreground', '-profile', '/tmp/tmpgZYg1r.mozrunner']
Traceback (most recent call last):
  File "./run.py", line 195, in <module>
    run()
  File "./run.py", line 178, in run
    runner.start()
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/mozrunner/base/browser.py", line 67, in start
    BaseRunner.start(self, *args, **kwargs)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/mozrunner/base/runner.py", line 102, in start
    self.process_handler.run(self.timeout, self.output_timeout)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/mozprocess/processhandler.py", line 700, in run
    self.proc = self.Process([self.cmd] + self.args, **args)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/mozprocess/processhandler.py", line 103, in __init__
    universal_newlines, startupinfo, creationflags)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 710, in __init__
    errread, errwrite)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1327, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory

我是不是遗漏了什么?我已经安装了Mercurial,并且能够复制构建工具回购。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2015-06-23 14:04:49

从错误消息判断,无法启动/usr/bin/firefox,因为:

OSError: Errno 2没有这样的文件或目录

ABP Crawler要求安装Firefox,它将自动化Firefox以收集数据。如果火狐是实际安装的,可能路径是/usr/local/bin/firefox或类似的东西。如果您不确定,可以从命令行运行which firefox

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/30945620

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档