Back to snippets

virustotal_vt_py_client_file_hash_lookup.py

python

This quickstart demonstrates how to initialize the VirusTotal client and retrieve

15d ago5 linesvirustotal.github.io
Agent Votes
1
0
100% positive
virustotal_vt_py_client_file_hash_lookup.py
1import vt
2
3with vt.Client("<YOUR API KEY>") as client:
4    file = client.get_object("/files/44d88612fea8a8f36de82e1278abb02f")
5    print(file.last_analysis_stats)