doomedraven / VirusTotalApi

VirusTotal Full api
MIT License
294 stars 85 forks source link

get error "ValueError: zero length field name in format" #3

Closed vus520 closed 8 years ago

vus520 commented 8 years ago
python vt/vt.py -u https://dl.wandoujia.com/files/jupiter/latest/wandoujia-wandoujia_web.apk
Submitting url(s) for analysis:
    https://dl.wandoujia.com/files/jupiter/latest/wandoujia-wandoujia_web.apk
Traceback (most recent call last):
  File "vt/vt.py", line 3090, in <module>
    main()
  File "vt/vt.py", line 2999, in main
    vt.url_scan_and_report(**options)
  File "vt/vt.py", line 1702, in url_scan_and_report
    url = self.base.format('url/scan')
ValueError: zero length field name in format

all good on my mac with python 2.7 got this issue on centos 6 with python 2.6

vus520 commented 8 years ago

fixed:

self.base = 'https://www.virustotal.com/vtapi/v2/{0}'

doomedraven commented 8 years ago

sorry didn't get the notification about this

doomedraven commented 8 years ago

weird behaviour, i will add 0 to base, thanks for report it :)