From 383f6bdd06438f279c8504a1db18041c44d58398 Mon Sep 17 00:00:00 2001 From: Pranav-Babu Date: Sat, 17 Jan 2026 23:44:10 +0530 Subject: [PATCH 1/2] Add verbose logging example to custom_hook_workflow --- docs/examples/quickstart.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/examples/quickstart.py b/docs/examples/quickstart.py index 9992a6bf0..016fc2544 100644 --- a/docs/examples/quickstart.py +++ b/docs/examples/quickstart.py @@ -134,7 +134,7 @@ async def custom_hook_workflow(verbose=True): # Set a 'before_goto' hook to run custom code just before navigation crawler.crawler_strategy.set_hook( "before_goto", - lambda page, context: print("[Hook] Preparing to navigate..."), + lambda page, context: print("[Hook] Preparing to navigate...") if verbose else None, ) # Perform the crawl operation From 419fdd68cbc5c70768492a298b12ff364b879272 Mon Sep 17 00:00:00 2001 From: Pranav-Babu Date: Sat, 17 Jan 2026 23:47:51 +0530 Subject: [PATCH 2/2] Add verbose logging example to custom_hook_workflow and proper comments --- docs/examples/quickstart.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/examples/quickstart.py b/docs/examples/quickstart.py index 016fc2544..74ff21b29 100644 --- a/docs/examples/quickstart.py +++ b/docs/examples/quickstart.py @@ -134,7 +134,7 @@ async def custom_hook_workflow(verbose=True): # Set a 'before_goto' hook to run custom code just before navigation crawler.crawler_strategy.set_hook( "before_goto", - lambda page, context: print("[Hook] Preparing to navigate...") if verbose else None, + lambda page, context: print("[Hook] Preparing to navigate...") if verbose else None, # verbose is used to print the message ) # Perform the crawl operation