围绕greynoise apo的python包装
pygreynoisev1的Python项目详细描述
pygreynoise
greynoise api v1的python 3包装,请参见https://github.com/Grey-Noise-Intelligence/api.greynoise.io和greynoise.io。api v1也不被弃用,但仍在工作,请参见this project了解api v2
要安装,请使用pypi和pip install pygreynoisev1
一起使用,或者从源代码安装:
git clone https://github.com/Te-k/pygreynoisev1.git
cd pygreynoisev1
pip install -r requirements.txt
pip install .
cli
$ greynoisev1 -h
usage: greynoise [-h] {ip,list,tag,config} ...
Request GreyNoise
positional arguments:
{ip,list,tag,config} Subcommand
ip Request info on an IP
list List GreyNoise Tags
tag Query data for a tag
config Configure key file
optional arguments:
-h, --help show this help message and exit
库
frompygreynoisev1importGreyNoisegn=GreyNoise()tags=gn.tags()try:gn.query_ip('198.20.69.74')exceptGreyNoiseError:print('IP not found')try:gn.query_tag('YANDEX_SEARCH_ENGINE')exceptGreyNoiseError:print('This tag does not exist')
作者和许可证
pygreynoisev1由Tek启动,并在mit许可下发布。请随意打开问题和请求。