Code Documentation¶
Frisbee Interface¶
-
class
frisbee.
Frisbee
(project: str = 'elastic_gates', log_level: int = 20, save: bool = False)[source]¶ Class to interact with the core code.
-
_config_bootstrap
() → None[source]¶ Handle the basic setup of the tool prior to user control.
Bootstrap will load all the available modules for searching and set them up for use by this main class.
-
Module Interface¶
-
class
frisbee.modules.base.
Base
(log_level=10)[source]¶ Base module class to assist in writing new modules.
-
_extract
() → None[source]¶ Extract email addresses from results.
Text content from all crawled pages are ran through a simple email extractor. Data is cleaned prior to running pattern expressions.
-
_fetch
(urls: List[str]) → None[source]¶ Perform bulk collection of data and return the content.
Gathering responses is handled by the base class and uses futures to speed up the processing. Response data is saved inside a local variable to be used later in extraction.
-
_format
() → None[source]¶ Format search queries to perform in bulk.
Build up the URLs to call for the search engine. These will be ran through a bulk processor and returned to a detailer.
-