跳转到主要内容

项目蜜罐 Http:BL API 客户端

项目描述

Project Honeypot Http:BL API 包

需要从 Http:BL 获取 API 密钥,地址为 https://www.projecthoneypot.org/

Version Status Coverage License

响应格式

具有键的字典

  • days_since_last_activity

  • name

  • threat_score

  • types - 访问者类型列表 (int 值)

列表类型在模块中枚举

  • httpbl.COMMENT_SPAMMER

  • httpbl.HARVESTER

  • httpbl.SEARCH_ENGINE

  • httpbl.SUSPICIOUS

文本描述在 httpbl.DESCRIPTIONS 字典中提供。

示例

import httpbl

ip_address = '127.5.20.3'

bl = httpbl.HttpBL('my-key')
response = bl.query(ip_address)

print('IP Address: {}'.format(ip_address)
print('Threat Score: {}'.format(response['threat_score'])
print('Days since last activity: {}'.foramt(response['days_since_last_activity'])
print('Visitor type: {}'.format(', '.join([httpbl.DESCRIPTIONS[t] for t in response['type']]))

项目详情


下载文件

下载适用于您的平台的文件。如果您不确定选择哪个,请了解有关 安装包 的更多信息。

源分布

httpbl-1.0.1.tar.gz (4.0 kB 查看哈希)

上传于 源码

构建版本

httpbl-1.0.1-py3-none-any.whl (3.4 kB 查看哈希)

上传于 Python 3

支持