Skip to content

Commit c91b235

Browse files
committed
docs: Update 0.7.5 video walkthrough
1 parent 8fc1747 commit c91b235

File tree

2 files changed

+66
-66
lines changed

2 files changed

+66
-66
lines changed

docs/releases_review/v0.7.5_docker_hooks_demo.py

Lines changed: 38 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@
3232
from crawl4ai.docker_client import Crawl4aiDockerClient
3333

3434
# Configuration
35-
# DOCKER_URL = "http://localhost:11235"
36-
DOCKER_URL = "http://localhost:11234"
35+
DOCKER_URL = "http://localhost:11235"
36+
# DOCKER_URL = "http://localhost:11234"
3737
TEST_URLS = [
3838
# "https://httpbin.org/html",
3939
"https://www.kidocode.com",
@@ -573,7 +573,7 @@ async def main():
573573
("String-Based Hooks (REST API)", demo_1_string_based_hooks, False),
574574
("hooks_to_string() Utility", demo_2_hooks_to_string_utility, False),
575575
("Docker Client Auto-Conversion", demo_3_docker_client_auto_conversion, True),
576-
("Complete Hook Pipeline", demo_4_complete_hook_pipeline, True),
576+
# ("Complete Hook Pipeline", demo_4_complete_hook_pipeline, True),
577577
]
578578

579579
for i, (name, demo_func, is_async) in enumerate(demos, 1):
@@ -592,7 +592,7 @@ async def main():
592592
# Pause between demos (except the last one)
593593
if i < len(demos):
594594
print("\n⏸️ Press Enter to continue to next demo...")
595-
input()
595+
# input()
596596

597597
except KeyboardInterrupt:
598598
print(f"\n⏹️ Demo interrupted by user")
@@ -605,40 +605,40 @@ async def main():
605605
continue
606606

607607
# Final summary
608-
# print("\n" + "=" * 70)
609-
# print(" 🎉 All Demonstrations Complete!")
610-
# print("=" * 70)
611-
612-
# print("\n📊 Summary of v0.7.5 Docker Hooks System:")
613-
# print("\n🆕 COMPLETELY NEW FEATURE in v0.7.5:")
614-
# print(" The Docker Hooks System lets you customize the crawling pipeline")
615-
# print(" with user-provided Python functions at 8 strategic points.")
616-
617-
# print("\n✨ Three Ways to Use Docker Hooks (All NEW!):")
618-
# print(" 1. String-based - Write hooks as strings for REST API")
619-
# print(" 2. hooks_to_string() - Convert Python functions to strings")
620-
# print(" 3. Docker Client - Automatic conversion (RECOMMENDED)")
621-
622-
# print("\n💡 Key Benefits:")
623-
# print(" ✓ Full IDE support (autocomplete, syntax highlighting)")
624-
# print(" ✓ Type checking and linting")
625-
# print(" ✓ Easy to test and debug")
626-
# print(" ✓ Reusable across projects")
627-
# print(" ✓ Complete pipeline control")
628-
629-
# print("\n🎯 8 Hook Points Available:")
630-
# print(" • on_browser_created, on_page_context_created")
631-
# print(" • on_user_agent_updated, before_goto, after_goto")
632-
# print(" • on_execution_started, before_retrieve_html, before_return_html")
633-
634-
# print("\n📚 Resources:")
635-
# print(" • Docs: https://docs.crawl4ai.com")
636-
# print(" • GitHub: https://github.com/unclecode/crawl4ai")
637-
# print(" • Discord: https://discord.gg/jP8KfhDhyN")
638-
639-
# print("\n" + "=" * 70)
640-
# print(" Happy Crawling with v0.7.5! 🕷️")
641-
# print("=" * 70 + "\n")
608+
print("\n" + "=" * 70)
609+
print(" 🎉 All Demonstrations Complete!")
610+
print("=" * 70)
611+
612+
print("\n📊 Summary of v0.7.5 Docker Hooks System:")
613+
print("\n🆕 COMPLETELY NEW FEATURE in v0.7.5:")
614+
print(" The Docker Hooks System lets you customize the crawling pipeline")
615+
print(" with user-provided Python functions at 8 strategic points.")
616+
617+
print("\n✨ Three Ways to Use Docker Hooks (All NEW!):")
618+
print(" 1. String-based - Write hooks as strings for REST API")
619+
print(" 2. hooks_to_string() - Convert Python functions to strings")
620+
print(" 3. Docker Client - Automatic conversion (RECOMMENDED)")
621+
622+
print("\n💡 Key Benefits:")
623+
print(" ✓ Full IDE support (autocomplete, syntax highlighting)")
624+
print(" ✓ Type checking and linting")
625+
print(" ✓ Easy to test and debug")
626+
print(" ✓ Reusable across projects")
627+
print(" ✓ Complete pipeline control")
628+
629+
print("\n🎯 8 Hook Points Available:")
630+
print(" • on_browser_created, on_page_context_created")
631+
print(" • on_user_agent_updated, before_goto, after_goto")
632+
print(" • on_execution_started, before_retrieve_html, before_return_html")
633+
634+
print("\n📚 Resources:")
635+
print(" • Docs: https://docs.crawl4ai.com")
636+
print(" • GitHub: https://github.com/unclecode/crawl4ai")
637+
print(" • Discord: https://discord.gg/jP8KfhDhyN")
638+
639+
print("\n" + "=" * 70)
640+
print(" Happy Crawling with v0.7.5! 🕷️")
641+
print("=" * 70 + "\n")
642642

643643

644644
if __name__ == "__main__":

docs/releases_review/v0.7.5_video_walkthrough.ipynb

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,33 @@
6262
"source": [
6363
"---\n",
6464
"\n",
65-
"## 🔒 Feature 1: HTTPS Preservation for Internal Links\n",
65+
"## 🔧 Feature 1: Docker Hooks System (NEW! 🆕)\n",
66+
"\n",
67+
"### What is it?\n",
68+
"v0.7.5 introduces a **completely new Docker Hooks System** that lets you inject custom Python functions at 8 key points in the crawling pipeline. This gives you full control over:\n",
69+
"- Authentication setup\n",
70+
"- Performance optimization\n",
71+
"- Content processing\n",
72+
"- Custom behavior at each stage\n",
73+
"\n",
74+
"### Three Ways to Use Docker Hooks\n",
75+
"\n",
76+
"The Docker Hooks System offers three approaches, all part of this new feature:\n",
77+
"\n",
78+
"1. **String-based hooks** - Write hooks as strings for REST API\n",
79+
"2. **Using `hooks_to_string()` utility** - Convert Python functions to strings\n",
80+
"3. **Docker Client auto-conversion** - Pass functions directly (most convenient)\n",
81+
"\n",
82+
"All three approaches are NEW in v0.7.5!"
83+
]
84+
},
85+
{
86+
"cell_type": "markdown",
87+
"metadata": {},
88+
"source": [
89+
"---\n",
90+
"\n",
91+
"## 🔒 Feature 2: HTTPS Preservation for Internal Links\n",
6692
"\n",
6793
"### Problem\n",
6894
"When crawling HTTPS sites, internal links sometimes get downgraded to HTTP, breaking authentication and causing security warnings.\n",
@@ -416,7 +442,7 @@
416442
"source": [
417443
"---\n",
418444
"\n",
419-
"## 🤖 Feature 2: Enhanced LLM Integration\n",
445+
"## 🤖 Feature 3: Enhanced LLM Integration\n",
420446
"\n",
421447
"### What's New\n",
422448
"- Custom `temperature` parameter for creativity control\n",
@@ -979,32 +1005,6 @@
9791005
"await demo_enhanced_llm()"
9801006
]
9811007
},
982-
{
983-
"cell_type": "markdown",
984-
"metadata": {},
985-
"source": [
986-
"---\n",
987-
"\n",
988-
"## 🔧 Feature 3: Docker Hooks System (NEW! 🆕)\n",
989-
"\n",
990-
"### What is it?\n",
991-
"v0.7.5 introduces a **completely new Docker Hooks System** that lets you inject custom Python functions at 8 key points in the crawling pipeline. This gives you full control over:\n",
992-
"- Authentication setup\n",
993-
"- Performance optimization\n",
994-
"- Content processing\n",
995-
"- Custom behavior at each stage\n",
996-
"\n",
997-
"### Three Ways to Use Docker Hooks\n",
998-
"\n",
999-
"The Docker Hooks System offers three approaches, all part of this new feature:\n",
1000-
"\n",
1001-
"1. **String-based hooks** - Write hooks as strings for REST API\n",
1002-
"2. **Using `hooks_to_string()` utility** - Convert Python functions to strings\n",
1003-
"3. **Docker Client auto-conversion** - Pass functions directly (most convenient)\n",
1004-
"\n",
1005-
"All three approaches are NEW in v0.7.5!"
1006-
]
1007-
},
10081008
{
10091009
"cell_type": "markdown",
10101010
"metadata": {},

0 commit comments

Comments
 (0)