intelmq.bots.experts.http package

Submodules

intelmq.bots.experts.http.expert_content module

HTTP Content Expert Bot

SPDX-FileCopyrightText: 2021 Birger Schacht <schacht@cert.at> SPDX-License-Identifier: AGPL-3.0-or-later

intelmq.bots.experts.http.expert_content.BOT

alias of HttpContentExpertBot

class intelmq.bots.experts.http.expert_content.HttpContentExpertBot(*args, **kwargs)

Bases: ExpertBot

Test if a given string is part of the content for a given URL

Parameters

field: str

The name of the field containing the URL to be checked (defaults to ‘source.url’).

needle: str

The string that the content available on URL is checked for.

overwrite:

Specifies if an existing ‘status’ value should be overwritten.

field: str = 'source.url'
init()
needle: str = None
overwrite: bool = True
process()

intelmq.bots.experts.http.expert_status module

HTTP Status Expert Bot

SPDX-FileCopyrightText: 2021 Birger Schacht <schacht@cert.at> SPDX-License-Identifier: AGPL-3.0-or-later

intelmq.bots.experts.http.expert_status.BOT

alias of HttpStatusExpertBot

class intelmq.bots.experts.http.expert_status.HttpStatusExpertBot(*args, **kwargs)

Bases: ExpertBot

Fetch the HTTP Status for a given URL

Parameters:
  • field (str) – The name of the field containing the URL to be checked (defaults to ‘source.url’).

  • success_status_codes (List) – A list of success status codes. If this parameter is omitted or the list is empty, successful status codes are the ones between 200 and 400.

  • overwrite (bool) – Specifies if an existing ‘status’ value should be overwritten.

field: str = 'source.url'
overwrite: bool = True
process()
success_status_codes: List[int] = []

Module contents