威胁网格api的python包装
pythreatgrid2的Python项目详细描述
PythreatGrid2
威胁网格api的python 3包装器
重命名为pythreatgrid2
,因为现在有另一个看起来不错的库pythreagrid
安装
从pypi安装:pip install pythreatgrid2
或手动安装:
git clone https://github.com/Te-k/pythreatgrid2.git
cd pythreatgrid
pip install .
使用
获取连接到域的所有示例的指示器:
frompythreatgrid2importThreatGrid,ThreatGridErrorkey=''tg=ThreatGrid(KEY)samples=tg.search_samples('google.com',type='domain')forsampleinsamples['items']:iocs=tg.get_sample_iocs(sample['id'])
文档
cd docs/build/html
python -m http.server 8000
然后访问http://localhost:8000/pythreatgrid.html#module-pythreatgrid