{"id":13795436,"url":"https://github.com/gmr/httpbl","last_synced_at":"2025-10-16T02:35:35.292Z","repository":{"id":1542367,"uuid":"1864341","full_name":"gmr/httpbl","owner":"gmr","description":"Python client library for the project-honeypot.org Http:BL API","archived":false,"fork":false,"pushed_at":"2020-11-17T14:08:27.000Z","size":18,"stargazers_count":8,"open_issues_count":0,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-25T09:49:16.434Z","etag":null,"topics":["client","honeypot","httpbl","python"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/httpbl/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gmr.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-06-08T08:46:59.000Z","updated_at":"2023-09-09T04:58:01.000Z","dependencies_parsed_at":"2022-08-16T13:40:41.781Z","dependency_job_id":null,"html_url":"https://github.com/gmr/httpbl","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gmr%2Fhttpbl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gmr%2Fhttpbl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gmr%2Fhttpbl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gmr%2Fhttpbl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gmr","download_url":"https://codeload.github.com/gmr/httpbl/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247934842,"owners_count":21020729,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["client","honeypot","httpbl","python"],"created_at":"2024-08-03T23:00:56.864Z","updated_at":"2025-10-16T02:35:35.244Z","avatar_url":"https://github.com/gmr.png","language":"Python","funding_links":[],"categories":["\u003ca id=\"a53d22b9c5d09dc894413453f4755658\"\u003e\u003c/a\u003e未分类"],"sub_categories":[],"readme":"httpbl\n======\n`Project Honeypot \u003chttp://www.projecthoneypot.org/\u003e`_ Http:BL API Package\n\nRequires a Http:BL API key from https://www.projecthoneypot.org/\n\n|Version| |Status| |Coverage| |License|\n\nResponse Format\n---------------\n\ndict with keys:\n\n- ``days_since_last_activity``\n- ``name``\n- ``threat_score``\n- ``types`` - a list of visitor types (``int`` values)\n\nThe list types are enumerated in the module:\n\n- ``httpbl.COMMENT_SPAMMER``\n- ``httpbl.HARVESTER``\n- ``httpbl.SEARCH_ENGINE``\n- ``httpbl.SUSPICIOUS``\n\nText descriptions are available in the ``httpbl.DESCRIPTIONS`` dict.\n\nExample\n-------\n\n.. code:: python\n\n    import httpbl\n\n    ip_address = '127.5.20.3'\n\n    bl = httpbl.HttpBL('my-key')\n    response = bl.query(ip_address)\n\n    print('IP Address: {}'.format(ip_address))\n    print('Threat Score: {}'.format(response['threat_score']))\n    print('Days since last activity: {}'.format(response['days_since_last_activity']))\n    print('Visitor type: {}'.format(', '.join([httpbl.DESCRIPTIONS[t] for t in response['type']])))\n\n.. |Version| image:: https://img.shields.io/pypi/v/httpbl.svg?\n   :target: https://pypi.python.org/pypi/httpbl\n\n.. |Status| image:: https://img.shields.io/travis/gmr/httpbl.svg?\n   :target: https://travis-ci.org/gmr/httpbl\n\n.. |Coverage| image:: https://img.shields.io/codecov/c/github/gmr/httpbl.svg?\n   :target: https://codecov.io/github/gmr/httpbl?branch=master\n\n.. |License| image:: https://img.shields.io/github/license/gmr/httpbl.svg?\n   :target: https://github.com/gmr/httpbl\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgmr%2Fhttpbl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgmr%2Fhttpbl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgmr%2Fhttpbl/lists"}