0

这是堆栈跟踪:

Traceback (most recent call last):
File "facebook_scraper.py", line 185, in <module>
fb_scraper()
File "facebook_scraper.py", line 36, in fb_scraper
server.start()
File "build/bdist.linux-x86_64/egg/browsermobproxy/server.py", line 56, in start
File "/usr/lib/python2.7/subprocess.py", line 711, in __init__
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1308, in _execute_child
raise child_exception
OSError: [Errno 13] Permission denied

我正在按照此页面的说明进行操作

4

1 回答 1

0

检查运行 Python 脚本的用户是否具有运行 browsermob 代理批处理文件的权限,该文件应该是一个 .bat 文件,位于path/to/browsermob-proxy

server = Server("path/to/browsermob-proxy")
于 2014-12-23T09:30:19.213 回答