MCPcopy Create free account
hub / github.com/ScrapeGraphAI/scrapecraft / __init__

Method __init__

backend/app/services/pattern_learner.py:81–85  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

79 """Service for learning from scraping patterns and improving suggestions."""
80
81 def __init__(self):
82 self.redis_client: Optional[redis.Redis] = None
83 self.pattern_cache = {}
84 self.domain_cache = {}
85 self.learning_threshold = 5 # Minimum executions before learning
86
87 async def initialize(self):
88 """Initialize the pattern learner."""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected