病毒检测率
response = requests.get( strURL , headers = headers )
nStatus = response.status_code
if nStatus == 200:
dataTEXT = response.text
dataJSON = json.loads( dataTEXT )
dataAnalysis = dataJSON["data"]["attributes"]["last_analysis_stats"]
nMalicious = dataAnalysis["malicious"]
nUndetected = dataAnalysis["undetected"]
nTotal = nMalicious + nUndetected
strDetected = "%d/%d" % (nMalicious , nTotal)
listDetection.append( [strDetected , iHash] )