Skip to content

Commit

Permalink
Fix #260 prevent pass duplicated kwargs to scrapping_strategy (#269)
Browse files Browse the repository at this point in the history
Thank you for the suggestions. It totally makes sense now. Change to pop operator.
  • Loading branch information
darwing1210 authored Nov 20, 2024
1 parent b654c49 commit d418a04
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crawl4ai/async_webcrawler.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,8 +197,8 @@ async def aprocess_html(
html,
word_count_threshold=word_count_threshold,
css_selector=css_selector,
only_text=kwargs.get("only_text", False),
image_description_min_word_threshold=kwargs.get(
only_text=kwargs.pop("only_text", False),
image_description_min_word_threshold=kwargs.pop(
"image_description_min_word_threshold", IMAGE_DESCRIPTION_MIN_WORD_THRESHOLD
),
**kwargs,
Expand Down

0 comments on commit d418a04

Please sign in to comment.