Extractor¶
-
class
HystrixBox.Extractors.
Extractor
¶ Bases:
object
A class used to represent a Extractor
-
static
extract
(self, text)¶ Extract specific information from data (text->str) usually by regex
Parameters: text (str) – The data to read from Returns: list of occurrences of the desired information Return type: list Raises: NotImplementedError – If the extract function not set in the extractor
-
static
Email Extractor¶
-
class
HystrixBox.Extractors.
EmailExtractor
¶ Bases:
HystrixBox.Extractors.Extractor.Extractor
A class used to represent an email extractor
Note
Regex according to RFC 5322
Ip Extractor¶
-
class
HystrixBox.Extractors.
IPExtractor
¶ Bases:
HystrixBox.Extractors.Extractor.Extractor
A class used to represent an Ip extractor
Note
Regex include both IPv4 and IPv6 formats
Md5 (Hash) Extractor¶
-
class
HystrixBox.Extractors.
MD5Extractor
¶ Bases:
HystrixBox.Extractors.Extractor.Extractor
A class used to represent an md5 Hash extractor
Note
Regex include both IPv4 and IPv6 formats
URL Extractor¶
-
class
HystrixBox.Extractors.
URLExtractor
¶ Bases:
HystrixBox.Extractors.Extractor.Extractor
A class used to represent an URL extractor
Note
Regex include prefix http or https, IPv4, IPv6, postfix port and resource path.
All URL with this format:
((?:https?://)?(?:STANDARD_URL|IPv4|IPv6)(?:PORT)?(?:RESSOURCE_PATH)