virustotal v3 api的python 3实现
virustotal3的Python项目详细描述
病毒总数3
virustotal3提供了一种使用virustotalversion3rest端点的简单方法,包括VirusTotal Enterprise独有的端点,如Live Hunt、Retro Hunt和Zip文件,这些文件在版本2中不可用
文件
https://virustotal3.readthedocs.io/en/latest/
使用示例
import os
import virustotal3.enterprise
API_KEY = os.environ['VT_API']
livehunt = virustotal3.enterprise.Livehunt(API_KEY)
rulesets = livehunt.get_rulesets()
print(rulesets)
功能
- 访问比v2 API提供的更多功能,如Live Hunt、Retro Hunt、Zip文件、关系等
- 对所有API端点(图形除外)使用易于使用的方法
- 简化文件的上传和下载。
- API要求对大于32MB的文件使用不同的端点
File.upload()
方法计算文件大小并选择适当的端点
- API要求对大于32MB的文件使用不同的端点
- 用python 3编写。
安装
通过运行以下命令安装virustotal3:
python3 setup.py install
贡献
- 问题跟踪程序:https://github.com/tr4cefl0w/virustotal3/issues
- 源代码:https://github.com/tr4cefl0w/virustotal3.git
支架
v3 api处于测试阶段,正在积极开发中。虽然大多数实现都经过了测试并且工作得很好,但virustotal可能会引入破坏性更改。这种情况很少发生,但最近url.get_comments()和url.get_vots()停止工作。目前,virustotal(96772)正在解决一个问题。
如果有问题,首先确保它不是来自API本身我和病毒都没有关系如果是API错误,请直接联系Virustotal。否则,打开一个GitHub问题