所以我按照以下步骤安装了这个模块:
git clone https://github.com/makinacorpus/spynner.git
cd spynner
python setup.py install
我得到了这种错误,我没有任何线索可能出错。
导入spynner
browser1 = spynner.Browser()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python2.7/dist-packages/spynner-1.11dev-py2.7.egg/spynner/browser.py", line 136, in __init__
self.jquery = open(os.path.join(directory, self._jquery)).read()
IOError: [Errno 2] No such file or directory: '/usr/local/lib/python2.7/dist-packages/spynner-1.11dev-py2.7.egg/spynner/javascript/jquery-1.5.2.js'
答案 0 :(得分:1)
是的,在那些缺少3个jquery文件的文件夹中,我手动添加了它们。现在它有效。