From 809b8c7749168cf36f11406ee3eafd2c97a443ed Mon Sep 17 00:00:00 2001 From: msramalho <19508417+msramalho@users.noreply.github.com> Date: Tue, 10 Jun 2025 16:14:42 +0100 Subject: [PATCH] default dropin introduced --- .../dropins/default.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 src/auto_archiver/modules/antibot_extractor_enricher/dropins/default.py diff --git a/src/auto_archiver/modules/antibot_extractor_enricher/dropins/default.py b/src/auto_archiver/modules/antibot_extractor_enricher/dropins/default.py new file mode 100644 index 0000000..c5c865a --- /dev/null +++ b/src/auto_archiver/modules/antibot_extractor_enricher/dropins/default.py @@ -0,0 +1,18 @@ +from auto_archiver.core.metadata import Metadata +from auto_archiver.modules.antibot_extractor_enricher.dropin import Dropin + + +class DefaultDropin(Dropin): + """ + A default fallback drop-in class for handling generic cases in the antibot extractor enricher module. + """ + + @staticmethod + def suitable(url: str) -> bool: + return False + + def open_page(self, url) -> bool: + return True + + def add_extra_media(self, to_enrich: Metadata) -> tuple[int, int]: + return 0, 0