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
intelmq.bots.experts.http.expert_content.HttpContentExpertBot
-
class
intelmq.bots.experts.http.expert_content.
HttpContentExpertBot
(*args, **kwargs)¶ Bases:
intelmq.lib.bot.ExpertBot
Test if a given string is part of the content for a given URL
- 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
= 'source.url'¶
-
init
()¶
-
needle
= None¶
-
overwrite
= 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
intelmq.bots.experts.http.expert_status.HttpStatusExpertBot
-
class
intelmq.bots.experts.http.expert_status.
HttpStatusExpertBot
(*args, **kwargs)¶ Bases:
intelmq.lib.bot.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
= 'source.url'¶
-
overwrite
= True¶
-
process
()¶
-
success_status_codes
= []¶