-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Expand file tree
/
Copy pathtest_httpx_quick.sh
More file actions
62 lines (53 loc) · 1.59 KB
/
test_httpx_quick.sh
File metadata and controls
62 lines (53 loc) · 1.59 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#!/bin/bash
# Quick Test - HTTPX Skill (Documentation Only, No GitHub)
# For faster testing without full C3.x analysis
set -e
echo "🚀 Quick HTTPX Skill Test (Docs Only)"
echo "======================================"
echo ""
# Simple config - docs only
CONFIG_FILE="configs/httpx_quick.json"
# Create quick config (docs only)
cat > "$CONFIG_FILE" << 'EOF'
{
"name": "httpx_quick",
"description": "HTTPX HTTP client for Python - Quick test version",
"base_url": "https://www.python-httpx.org/",
"selectors": {
"main_content": "article.md-content__inner",
"title": "h1",
"code_blocks": "pre code"
},
"url_patterns": {
"include": ["/quickstart/", "/advanced/", "/api/"],
"exclude": ["/changelog/", "/contributing/"]
},
"categories": {
"getting_started": ["quickstart", "install"],
"api": ["api", "reference"],
"advanced": ["async", "http2"]
},
"rate_limit": 0.3,
"max_pages": 50
}
EOF
echo "✓ Created quick config (docs only, max 50 pages)"
echo ""
# Run scraper
echo "🔍 Scraping documentation..."
START_TIME=$(date +%s)
skill-seekers scrape --config "$CONFIG_FILE" --output output/httpx_quick
END_TIME=$(date +%s)
DURATION=$((END_TIME - START_TIME))
echo ""
echo "✅ Complete in ${DURATION}s"
echo ""
echo "📊 Results:"
echo " Output: output/httpx_quick/"
echo " SKILL.md: $(wc -l < output/httpx_quick/SKILL.md) lines"
echo " References: $(find output/httpx_quick/references -name "*.md" 2>/dev/null | wc -l) files"
echo ""
echo "🔍 Preview:"
head -30 output/httpx_quick/SKILL.md
echo ""
echo "📦 Next: skill-seekers package output/httpx_quick/"