1

所以我按照以下步骤安装了这个模块:

git clone https://github.com/makinacorpus/spynner.git
cd spynner
python setup.py install

我得到了这种错误,我没有任何线索可能是错误的。

进口斯皮纳

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'
4

1 回答 1

1

是的,在那些缺少 3 个 jquery 文件的文件夹中,我手动添加了它们。现在它起作用了。

于 2012-07-16T11:14:55.440 回答