Official Crawl4AI Cloud: a hosted web scraping, extraction, and search API for AI agents. Free API key, 1,000 credits a month, no card. Fully open source: this repo is the Apache-2.0 crawler that powers it, and you can self-host it.
Python aiai-agentscrawl4ai-cloudcrawlerdata-extractionllmmarkdownmcpopen-sourceplaywrightpythonragscraperweb-crawlerweb-crawlingweb-scraping
Merge remote-tracking branch 'origin/develop' into develop
unclecode728875fb3d3d
diff --cc crawl4ai/content_filter_strategy.pyindex 04e521db,ab99a793..24634ac3--- a/crawl4ai/content_filter_strategy.py+++ b/crawl4ai/content_filter_strategy.py@@@ -579,21 -580,10 +581,23 @@@ class PruningContentFilter(RelevantContmin_word_threshold (int): Minimum word threshold for filtering (optional).threshold_type (str): Threshold type for dynamic threshold (default: 'fixed').threshold (float): Fixed threshold value (default: 0.48).+ preserve_classes (list): CSS class names to always keep regardless of score (optional).+ preserve_tags (list): HTML tag names to always keep regardless of score (optional)."""super().__init__(None)+ # Deprecation: the BeautifulSoup engine is superseded by the lxml one.+ # Only warn for direct use of this class, not when PruningContentFilterLXML+ # (a subclass) calls super().__init__.+ if type(self) is PruningContentFilter:+ warnings.warn(+ "PruningContentFilter (BeautifulSoup-based) is deprecated in favor of "+ "PruningContentFilterLXML, an lxml reimplementation that is ~10x faster "+ "with identical output. Switch to PruningContentFilterLXML now. In an "+ "upcoming release PruningContentFilter will become an alias for the lxml "+ "implementation, and PruningContentFilterLXML will be kept as a legacy alias.",+ DeprecationWarning,+ stacklevel=2,+ )self.min_word_threshold = min_word_thresholdself.threshold_type = threshold_typeself.threshold = threshold