Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions crawl4ai/async_configs.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion crawl4ai/deep_crawling/crazy.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion crawl4ai/extraction_strategy.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down