From 9749e2832d3b92d97381004c9743e23198f4fe92 Mon Sep 17 00:00:00 2001 From: nafeqq-1306 Date: Fri, 29 Aug 2025 10:20:47 +0800 Subject: [PATCH] issue #1329 refactor(crawler): move unwanted properties to CrawlerRunConfig class --- .yoyo/snapshot | 1 + crawl4ai/async_configs.py | 12 ++++++------ 2 files changed, 7 insertions(+), 6 deletions(-) create mode 160000 .yoyo/snapshot diff --git a/.yoyo/snapshot b/.yoyo/snapshot new file mode 160000 index 00000000..d2698b0e --- /dev/null +++ b/.yoyo/snapshot @@ -0,0 +1 @@ +Subproject commit d2698b0e1a35fea0eff87d7e2c9256125d56ad21 diff --git a/crawl4ai/async_configs.py b/crawl4ai/async_configs.py index 174ec3e4..37f5e8cf 100644 --- a/crawl4ai/async_configs.py +++ b/crawl4ai/async_configs.py @@ -813,12 +813,6 @@ class HTTPCrawlerConfig: return HTTPCrawlerConfig.from_kwargs(config) class CrawlerRunConfig(): - _UNWANTED_PROPS = { - 'disable_cache' : 'Instead, use cache_mode=CacheMode.DISABLED', - 'bypass_cache' : 'Instead, use cache_mode=CacheMode.BYPASS', - 'no_cache_read' : 'Instead, use cache_mode=CacheMode.WRITE_ONLY', - 'no_cache_write' : 'Instead, use cache_mode=CacheMode.READ_ONLY', - } """ Configuration class for controlling how the crawler runs each crawl operation. @@ -1023,6 +1017,12 @@ class CrawlerRunConfig(): url: str = None # This is not a compulsory parameter """ + _UNWANTED_PROPS = { + 'disable_cache' : 'Instead, use cache_mode=CacheMode.DISABLED', + 'bypass_cache' : 'Instead, use cache_mode=CacheMode.BYPASS', + 'no_cache_read' : 'Instead, use cache_mode=CacheMode.WRITE_ONLY', + 'no_cache_write' : 'Instead, use cache_mode=CacheMode.READ_ONLY', + } def __init__( self,