Fix #260 prevent pass duplicated kwargs to scrapping_strategy (#269)

Thank you for the suggestions. It totally makes sense now. Change to pop operator.
This commit is contained in:
Darwing Medina
2024-11-20 04:52:11 -06:00
committed by GitHub
parent b654c49e55
commit d418a04602

View File

@@ -197,8 +197,8 @@ class AsyncWebCrawler:
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,