antibot_extractor_enricher.antibot_extractor_enricher#
Module Contents#
- class antibot_extractor_enricher.antibot_extractor_enricher.AntibotExtractorEnricher#
Bases:
auto_archiver.core.Extractor,auto_archiver.core.EnricherBase class for implementing extractors in the media archiving framework. Subclasses must implement the download method to define platform-specific behavior.
- setup() None#
- load_dropins()#
- sanitize_url(url: str) str#
Used to clean unnecessary URL parameters OR unfurl redirect links
- download(item: auto_archiver.core.Metadata) auto_archiver.core.Metadata#
Downloads the media from the given URL and returns a Metadata object with the downloaded media.
If the URL is not supported or the download fails, this method should return False.
- enrich(to_enrich: auto_archiver.core.Metadata, custom_data_dir: bool = True) bool#
Enriches a Metadata object with additional information or context.
Takes the metadata object to enrich as an argument and modifies it in place, returning None.