Initial commit: yu-zhi-ran platform with automation integration

This commit is contained in:
lt
2026-04-19 14:05:09 +08:00
commit 3cb2df51c8
209 changed files with 80379 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
#!/bin/bash
echo "Testing API:"
echo "1. List packages for A01:"
curl -s "http://localhost:8000/api/publisher/packages/A01" | python3 -m json.tool
echo ""
echo "2. Get package HTML for 知乎:"
curl -s "http://localhost:8000/api/publisher/package/A01/知乎" | python3 -c "import sys, json; data=json.load(sys.stdin); print('HTML length:', len(data.get('html',0)))" 2>&1
echo ""
echo "3. Get package HTML for 小红书:"
curl -s "http://localhost:8000/api/publisher/package/A01/小红书" | python3 -c "import sys, json; data=json.load(sys.stdin); print('HTML length:', len(data.get('html',0)))" 2>&1