httpbl 1.0.1
pip install httpbl
Latest version
Released:
Project Honeypot Http:BL API Client
Navigation
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: BSD License (BSD)
- Author: Gavin M. Roy
- Tags honeypot
Classifiers
- Development Status
- Intended Audience
- License
- Programming Language
- Topic
Project description
Project Honeypot Http:BL API Package
Requires a Http:BL API key from https://www.projecthoneypot.org/
Response Format
dict with keys:
days_since_last_activity
name
threat_score
types - a list of visitor types (int values)
The list types are enumerated in the module:
httpbl.COMMENT_SPAMMER
httpbl.HARVESTER
httpbl.SEARCH_ENGINE
httpbl.SUSPICIOUS
Text descriptions are available in the httpbl.DESCRIPTIONS dict.
Example
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']]))
Project details
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: BSD License (BSD)
- Author: Gavin M. Roy
- Tags honeypot
Classifiers
- Development Status
- Intended Audience
- License
- Programming Language
- Topic
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file httpbl-1.0.1.tar.gz
.
File metadata
- Download URL: httpbl-1.0.1.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f0f945ace543131702686583f349aeb0e9cfe731d9ee6e3045b4acc70e72ae10 |
|
MD5 | 340cc810a44fa7b54673c110b33e3fbb |
|
BLAKE2b-256 | 8edbb612d532f58765d1308f8b72b9506ad24d6d945137aa305221f4e560085c |
File details
Details for the file httpbl-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: httpbl-1.0.1-py3-none-any.whl
- Upload date:
- Size: 3.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 85b03eb58580aa14a50e6ff2b361817c45f14754424376a419dc0899bc0566e7 |
|
MD5 | bfd45e14b82fe70ae1022ce15a5dbe0a |
|
BLAKE2b-256 | 162c29123034de5cf949e619893c17d69a2d7e308d136e998188cc6931d66b61 |