From fee4c5c78306b1fe13846344621f7cc06f70a3f0 Mon Sep 17 00:00:00 2001 From: ntohidi Date: Tue, 8 Jul 2025 11:46:24 +0200 Subject: [PATCH] fix: Consolidate import statements in local-files.md for clarity --- docs/md_v2/core/local-files.md | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/docs/md_v2/core/local-files.md b/docs/md_v2/core/local-files.md index 31fe7792..2fccea81 100644 --- a/docs/md_v2/core/local-files.md +++ b/docs/md_v2/core/local-files.md @@ -8,8 +8,7 @@ To crawl a live web page, provide the URL starting with `http://` or `https://`, ```python import asyncio -from crawl4ai import AsyncWebCrawler, CacheMode -from crawl4ai.async_configs import CrawlerRunConfig +from crawl4ai import AsyncWebCrawler, CacheMode, CrawlerRunConfig async def crawl_web(): config = CrawlerRunConfig(cache_mode=CacheMode.BYPASS) @@ -33,8 +32,7 @@ To crawl a local HTML file, prefix the file path with `file://`. ```python import asyncio -from crawl4ai import AsyncWebCrawler, CacheMode -from crawl4ai.async_configs import CrawlerRunConfig +from crawl4ai import AsyncWebCrawler, CacheMode, CrawlerRunConfig async def crawl_local_file(): local_file_path = "/path/to/apple.html" # Replace with your file path @@ -93,8 +91,7 @@ import os import sys import asyncio from pathlib import Path -from crawl4ai import AsyncWebCrawler, CacheMode -from crawl4ai.async_configs import CrawlerRunConfig +from crawl4ai import AsyncWebCrawler, CacheMode, CrawlerRunConfig async def main(): wikipedia_url = "https://en.wikipedia.org/wiki/apple"