Automating-VirusTotal-APIv3-for-IPs-and-URLs icon indicating copy to clipboard operation
Automating-VirusTotal-APIv3-for-IPs-and-URLs copied to clipboard

KeyError: 'data'

Open Chuldun opened this issue 9 months ago • 0 comments

Please help me resolve the following error. I followed the tutorial and had no problems with the installation. I tried to enter an IP list from a txt file and got the error below. Please help me fix it as I am a beginner in Python coding.

Traceback (most recent call last):
  File "/home/haha/python-vt/vt-ip-url-analysis.py", line 459, in <module>
    urlReportIPLst(args.ip_list)
  File "/home/haha/python-vt/vt-ip-url-analysis.py", line 322, in urlReportIPLst
    urlReport(i)
  File "/home/haha/python-vt/vt-ip-url-analysis.py", line 104, in urlReport
    epoch_time = (decodedResponse["data"]["attributes"]["last_analysis_date"])
KeyError: 'data'

Chuldun avatar May 08 '24 03:05 Chuldun