fix: Add CSS selectors to test config in BULLETPROOF_QUICKSTART.md
The test config was missing CSS selectors, causing the scraper to fail with "No content" errors on Tailwind CSS documentation. Changes: - Added selectors section with proper CSS selectors for Tailwind docs - Added Windows PowerShell alternative since cat/EOF doesn't work there - Includes main_content, title, and code_blocks selectors This fixes the "No content" error reported in issue #261. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -278,6 +278,11 @@ cat > configs/test.json << 'EOF'
|
||||
"name": "test-skill",
|
||||
"description": "Test skill creation",
|
||||
"base_url": "https://tailwindcss.com/docs/installation",
|
||||
"selectors": {
|
||||
"main_content": "#content-wrapper",
|
||||
"title": "h1, h2, h3",
|
||||
"code_blocks": "pre code"
|
||||
},
|
||||
"max_pages": 5,
|
||||
"rate_limit": 0.5
|
||||
}
|
||||
@@ -287,6 +292,29 @@ EOF
|
||||
skill-seekers scrape --config configs/test.json
|
||||
```
|
||||
|
||||
**Note for Windows users:** The `cat > file << 'EOF'` syntax doesn't work in PowerShell. Instead, create the file manually:
|
||||
|
||||
```powershell
|
||||
# In PowerShell, create configs/test.json with this content:
|
||||
@"
|
||||
{
|
||||
"name": "test-skill",
|
||||
"description": "Test skill creation",
|
||||
"base_url": "https://tailwindcss.com/docs/installation",
|
||||
"selectors": {
|
||||
"main_content": "#content-wrapper",
|
||||
"title": "h1, h2, h3",
|
||||
"code_blocks": "pre code"
|
||||
},
|
||||
"max_pages": 5,
|
||||
"rate_limit": 0.5
|
||||
}
|
||||
"@ | Out-File -FilePath configs/test.json -Encoding utf8
|
||||
|
||||
# Then run the scraper
|
||||
skill-seekers scrape --config configs/test.json
|
||||
```
|
||||
|
||||
**What happens:**
|
||||
1. Scrapes 5 pages from Tailwind CSS docs
|
||||
2. Creates `output/test-skill/` directory
|
||||
|
||||
Reference in New Issue
Block a user