Python-owasp-zap api

时间:2014-10-06 07:40:28

标签: python json owasp

我想使用python-owasp-zap api。我下载并安装了python-owasp-zap所需的所有存储库。当我运行网站 https://code.google.com/p/zaproxy/wiki/ApiPython 中提供的示例代码时,我收到以下错误,请帮助我。

zap.spider.scan(target)
 return self.zap._request(self.zap.base + 'spider/action/scan/',                        {'url' : url, 'apikey' : apikey})

 File "/usr/local/lib/python2.7/dist-packages/zapv2/spider.py", line 108, in scan
 return json.loads(self.urlopen(url + '?' + urllib.urlencode(get)))
 File "/usr/lib/python2.7/json/decoder.py", line 366, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python2.7/json/decoder.py", line 384, in raw_decode
raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded

0 个答案:

没有答案