adds test for antibot

This commit is contained in:
msramalho
2025-06-04 11:59:59 +01:00
parent 378b1a6d22
commit 22408e2a98
2 changed files with 175 additions and 1 deletions

View File

@@ -3,6 +3,7 @@ import math
import mimetypes
import os
import sys
import traceback
from urllib.parse import urljoin
from loguru import logger
@@ -75,7 +76,7 @@ class AntibotExtractorEnricher(Extractor, Enricher):
return to_enrich
except Exception as e:
logger.error(f"ANTIBOT runtime error: {e}")
logger.error(f"ANTIBOT runtime error: {e}: {traceback.format_exc()}")
return False
def _hit_auth_wall(self, sb: SB) -> bool: