Archived
This project has been archived by its maintainers, and is no longer receiving any updates.
httpbl
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']]))
Release files for httpbl 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| httpbl-1.0.1.tar.gz | 4.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| httpbl-1.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.4 kB
Release files / httpbl-1.0.1.tar.gz
| Download URL | httpbl-1.0.1.tar.gz |
|---|---|
| Size | 4.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f0f945ace543131702686583f349aeb0e9cfe731d9ee6e3045b4acc70e72ae10
|
|
BLAKE2b-256 checksum How to use checksums |
8edbb612d532f58765d1308f8b72b9506ad24d6d945137aa305221f4e560085c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / httpbl-1.0.1-py3-none-any.whl
| Download URL | httpbl-1.0.1-py3-none-any.whl |
|---|---|
| Size | 3.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
85b03eb58580aa14a50e6ff2b361817c45f14754424376a419dc0899bc0566e7
|
|
BLAKE2b-256 checksum How to use checksums |
162c29123034de5cf949e619893c17d69a2d7e308d136e998188cc6931d66b61
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |