Skip to main content

Project Honeypot Http:BL API Client

Project description

Project Honeypot Http:BL API Package

Requires a Http:BL API key from https://www.projecthoneypot.org/

Version Status Coverage License

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

httpbl-1.0.1.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

httpbl-1.0.1-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

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

Hashes for httpbl-1.0.1.tar.gz
Algorithm Hash digest
SHA256 f0f945ace543131702686583f349aeb0e9cfe731d9ee6e3045b4acc70e72ae10
MD5 340cc810a44fa7b54673c110b33e3fbb
BLAKE2b-256 8edbb612d532f58765d1308f8b72b9506ad24d6d945137aa305221f4e560085c

See more details on using hashes here.

File details

Details for the file httpbl-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for httpbl-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 85b03eb58580aa14a50e6ff2b361817c45f14754424376a419dc0899bc0566e7
MD5 bfd45e14b82fe70ae1022ce15a5dbe0a
BLAKE2b-256 162c29123034de5cf949e619893c17d69a2d7e308d136e998188cc6931d66b61

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page