python-owasp-zap api を使いたいです。python-owasp-zap に必要なすべてのリポジトリをダウンロードしてインストールしました。Web サイトhttps://github.com/zaproxy/zaproxy/wiki/ApiPythonで提供されたサンプル コードを実行すると、以下のエラーが表示されます。助けてください。
Traceback (most recent call last):
File "zap2.py", line 34, in <module>
while (int(zap.spider.status()) < 100):
ValueError: invalid literal for int() with base 10: 'Does Not Exist'
次に、ステータスメソッドから括弧を削除しようとしました:
while (int(zap.spider.status) < 100):
print 'Spider progress %: ' + zap.spider.status
time.sleep(2)
そして、次のエラーが表示されます。
TypeError: Int argument must be an Int or string not an InstanceMethod
エラーを修正するためのヘルプをいただければ幸いです。