mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-07-06 22:12:12 +02:00
feat: completed init mvp of phase 3
This commit is contained in:
parent
bdacea8b6e
commit
15fd0b08d6
20 changed files with 2107 additions and 69 deletions
18
surfsense_backend/app/utils/crawl/__init__.py
Normal file
18
surfsense_backend/app/utils/crawl/__init__.py
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
"""App-wide crawler block classification (Apache-2.0, generic).
|
||||
|
||||
Phase 3e (Slice A). Mirrors ``app/utils/proxy`` and ``app/utils/captcha``: this
|
||||
package holds only the **generic, vendor-agnostic** glue — here, a pure block
|
||||
classifier (passive telemetry from public anti-bot markers). It is consumed by
|
||||
the separately licensed proprietary crawler to label ``CrawlOutcome.block_type``.
|
||||
|
||||
The **bypass-specific tuning** (the stealth kwargs builder / geoip coherence, and
|
||||
the deferred WebGL spoof + humanize choreography) is NOT generic and lives under
|
||||
the proprietary boundary in ``app/proprietary/web_crawler/`` (``stealth.py``).
|
||||
"""
|
||||
|
||||
from app.utils.crawl.classifier import BlockType, classify_block
|
||||
|
||||
__all__ = [
|
||||
"BlockType",
|
||||
"classify_block",
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue