From 00d60dc330a3898b7acc1266ae8fcc0157cd4d0d Mon Sep 17 00:00:00 2001 From: MsfPablo Date: Mon, 24 Aug 2026 11:24:36 +0200 Subject: [PATCH] docs: fix typos in code comments --- crawl4ai/async_configs.py | 4 ++-- crawl4ai/deep_crawling/crazy.py | 2 +- crawl4ai/extraction_strategy.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/crawl4ai/async_configs.py b/crawl4ai/async_configs.py index 3efb0d380..4083bae79 100644 --- a/crawl4ai/async_configs.py +++ b/crawl4ai/async_configs.py @@ -1010,7 +1010,7 @@ def clone(self, **kwargs): config_dict.update(kwargs) return BrowserConfig.from_kwargs(config_dict) - # Create a funciton returns dict of the object + # Create a function returns dict of the object def dump(self) -> dict: # Serialize the object to a dictionary return to_serializable_dict(self) @@ -2081,7 +2081,7 @@ def from_kwargs(kwargs: dict) -> "CrawlerRunConfig": valid = inspect.signature(CrawlerRunConfig.__init__).parameters.keys() - {"self"} return CrawlerRunConfig(**{k: v for k, v in kwargs.items() if k in valid}) - # Create a funciton returns dict of the object + # Create a function returns dict of the object def dump(self) -> dict: # Serialize the object to a dictionary return to_serializable_dict(self) diff --git a/crawl4ai/deep_crawling/crazy.py b/crawl4ai/deep_crawling/crazy.py index d2bc27e5e..6d3640f72 100644 --- a/crawl4ai/deep_crawling/crazy.py +++ b/crawl4ai/deep_crawling/crazy.py @@ -334,7 +334,7 @@ async def traverse(self, ctx.depths[start_url] = 0 while not ctx.frontier.is_empty() and not self._cancel.is_set(): - # Use the best algorith, to find top_n value + # Use the best algorithm to find top_n value top_n = calculate_quantum_batch_size( depth=ctx.current_depth, max_depth=self.max_depth, diff --git a/crawl4ai/extraction_strategy.py b/crawl4ai/extraction_strategy.py index ed039890e..c43e67bb3 100644 --- a/crawl4ai/extraction_strategy.py +++ b/crawl4ai/extraction_strategy.py @@ -723,7 +723,7 @@ def extract(self, url: str, ix: int, html: str) -> List[Dict[str, Any]]: elif self.force_json_response: blocks = json.loads(_strip_markdown_fences(content)) if isinstance(blocks, dict): - # If it has only one key which calue is list then assign that to blocks, exampled: {"news": [..]} + # If it has only one key which value is list then assign that to blocks, exampled: {"news": [..]} if len(blocks) == 1 and isinstance(list(blocks.values())[0], list): blocks = list(blocks.values())[0] else: