Update all documentation to import extraction strategies directly from crawl4ai.
This commit is contained in:
@@ -1701,7 +1701,7 @@ Generated: ${new Date().toISOString()}
|
||||
import asyncio
|
||||
import json
|
||||
from crawl4ai import AsyncWebCrawler, BrowserConfig, CrawlerRunConfig
|
||||
from crawl4ai.extraction_strategy import JsonCssExtractionStrategy
|
||||
from crawl4ai import JsonCssExtractionStrategy
|
||||
|
||||
# The extraction schema generated from your selections
|
||||
EXTRACTION_SCHEMA = ${schemaJson}
|
||||
@@ -1782,7 +1782,7 @@ import asyncio
|
||||
import json
|
||||
from pathlib import Path
|
||||
from crawl4ai import AsyncWebCrawler, BrowserConfig, CrawlerRunConfig
|
||||
from crawl4ai.extraction_strategy import JsonCssExtractionStrategy
|
||||
from crawl4ai import JsonCssExtractionStrategy
|
||||
|
||||
# HTML snippet of the selected container element
|
||||
HTML_SNIPPET = """
|
||||
|
||||
@@ -2437,7 +2437,7 @@ Generated: ${timestamp}
|
||||
import asyncio
|
||||
from pathlib import Path
|
||||
from crawl4ai import AsyncWebCrawler, BrowserConfig, CrawlerRunConfig
|
||||
from crawl4ai.extraction_strategy import JsonCssExtractionStrategy
|
||||
from crawl4ai import JsonCssExtractionStrategy
|
||||
|
||||
# C4A Script commands
|
||||
C4A_SCRIPT = """
|
||||
|
||||
Reference in New Issue
Block a user