crawl_config.json 13.2 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 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424
{
  "skill_name": "lemonv_drama",
  "version": "1.0.0",
  "created_at": "2026-04-13T00:00:00Z",
  "source_agent": "hunter",
  "crawl_policy": {
    "respect_robots_txt": true,
    "request_interval_seconds": 2,
    "max_retries": 3,
    "user_agent": "Mozilla/5.0 (compatible; LemonAI-Hunter/1.0; +https://lemonai.io/bot)"
  },
  "data_sources": [
    {
      "id": "gushiwen_poetry",
      "name": "古诗文网 - 古诗词库",
      "category": "literature_reference",
      "base_url": "https://www.gushiwen.cn",
      "endpoints": [
        {
          "path": "/guwen/default.aspx",
          "method": "GET",
          "description": "古文分类浏览,用于提取典故与定场诗素材",
          "parse_type": "html",
          "selectors": {
            "title": ".cont h1 a",
            "author": ".cont .source a",
            "content": ".contson",
            "tags": ".sons .tag a"
          },
          "rate_limit": "2s"
        }
      ],
      "headers": {
        "Accept": "text/html,application/xhtml+xml",
        "Accept-Language": "zh-CN,zh;q=0.9"
      },
      "quality_score": 9,
      "notes": "古诗词权威来源,可用于剧本对白意象与章节标题"
    },
    {
      "id": "zhonghuadiancang_classics",
      "name": "中华典藏 - 古籍全文",
      "category": "literature_reference",
      "base_url": "https://www.zhonghuadiancang.com",
      "endpoints": [
        {
          "path": "/{dynasty}/{book}/",
          "method": "GET",
          "description": "历史古籍全文,用于时代背景与礼制校验",
          "parse_type": "html",
          "selectors": {
            "chapter_title": "h1",
            "content": ".content p"
          },
          "rate_limit": "2s"
        }
      ],
      "headers": {
        "Accept": "text/html,application/xhtml+xml"
      },
      "quality_score": 8,
      "notes": "二十四史、诸子百家等古籍,适合历史细节考证"
    },
    {
      "id": "wikipedia_chinese_history",
      "name": "Wikipedia - 中国历史朝代",
      "category": "history_reference",
      "base_url": "https://zh.wikipedia.org",
      "endpoints": [
        {
          "path": "/api/rest_v1/page/summary/{title}",
          "method": "GET",
          "description": "REST API 获取朝代摘要,用于快速锚定时代背景",
          "parse_type": "json",
          "json_paths": {
            "title": "$.title",
            "extract": "$.extract",
            "thumbnail": "$.thumbnail.source"
          },
          "rate_limit": "2s"
        }
      ],
      "headers": {
        "Accept": "application/json",
        "Api-User-Agent": "LemonAI-Hunter/1.0 (research@lemonai.io)"
      },
      "quality_score": 9,
      "notes": "结构化历史数据,支持 REST API,调用稳定"
    },
    {
      "id": "douban_reading_gufeng",
      "name": "豆瓣阅读 - 古风小说",
      "category": "market_research",
      "base_url": "https://read.douban.com",
      "endpoints": [
        {
          "path": "/category/?kind=fiction&tag=%E5%8F%A4%E9%A3%8E",
          "method": "GET",
          "description": "古风小说榜单与标签,用于市场风向追踪",
          "parse_type": "html",
          "selectors": {
            "title": ".title a",
            "author": ".author a",
            "rating": ".rating .average",
            "summary": ".intro"
          },
          "rate_limit": "3s"
        }
      ],
      "headers": {
        "Accept": "text/html,application/xhtml+xml"
      },
      "quality_score": 7,
      "notes": "需登录态查看更多内容,公开页可用于榜单抓取"
    },
    {
      "id": "bilibili_gufeng",
      "name": "Bilibili - 古风区 / 历史区",
      "category": "trend_analysis",
      "base_url": "https://api.bilibili.com",
      "endpoints": [
        {
          "path": "/x/web-interface/search/type?keyword=古风&search_type=video",
          "method": "GET",
          "description": "古风视频搜索,用于洞察视听趋势与流行梗",
          "parse_type": "json",
          "json_paths": {
            "videos": "$.data.result",
            "title": "$.data.result[*].title",
            "bvid": "$.data.result[*].bvid",
            "play_count": "$.data.result[*].play",
            "description": "$.data.result[*].description"
          },
          "rate_limit": "2s"
        }
      ],
      "headers": {
        "Accept": "application/json",
        "Referer": "https://search.bilibili.com/"
      },
      "quality_score": 8,
      "notes": "公开 API,无需认证即可搜索视频元数据"
    },
    {
      "id": "chenguang_games",
      "name": "橙光游戏 - 古风互动剧",
      "category": "case_study",
      "base_url": "https://www.66rpg.com",
      "endpoints": [
        {
          "path": "/list/tag/%E5%8F%A4%E9%A3%8E",
          "method": "GET",
          "description": "古风标签互动剧列表,用于分支结构与UI参考",
          "parse_type": "html",
          "selectors": {
            "title": ".game-title",
            "cover": ".game-cover img",
            "tags": ".game-tag",
            "summary": ".game-desc"
          },
          "rate_limit": "3s"
        }
      ],
      "headers": {
        "Accept": "text/html,application/xhtml+xml"
      },
      "quality_score": 7,
      "notes": "头部互动阅读平台,案例参考价值高"
    },
    {
      "id": "yi_ciyuan_gufeng",
      "name": "易次元 - 古风作品",
      "category": "case_study",
      "base_url": "https://avg.163.com",
      "endpoints": [
        {
          "path": "/home/search?keyword=古风",
          "method": "GET",
          "description": "易次元古风作品搜索,用于多结局设计参考",
          "parse_type": "html",
          "selectors": {
            "title": ".work-title",
            "cover": ".work-cover",
            "view_count": ".work-hot"
          },
          "rate_limit": "3s"
        }
      ],
      "headers": {
        "Accept": "text/html,application/xhtml+xml"
      },
      "quality_score": 7,
      "notes": "网易旗下互动阅读平台,画风与题材新"
    },
    {
      "id": "midjourney_documentation",
      "name": "Midjourney 文档",
      "category": "image_generation_api",
      "base_url": "https://docs.midjourney.com",
      "endpoints": [
        {
          "path": "/docs/quick-start",
          "method": "GET",
          "description": "官方 Prompt 指南与参数文档",
          "parse_type": "html",
          "selectors": {
            "heading": "h1, h2",
            "paragraph": "p"
          },
          "rate_limit": "2s"
        }
      ],
      "headers": {
        "Accept": "text/html"
      },
      "quality_score": 9,
      "notes": "古风角色/场景图生成的顶级 API,需 Discord 接入"
    },
    {
      "id": "stability_api",
      "name": "Stability AI API",
      "category": "image_generation_api",
      "base_url": "https://platform.stability.ai",
      "endpoints": [
        {
          "path": "/api/v1/generation/{engine_id}/text-to-image",
          "method": "POST",
          "description": "Stable Diffusion XL 文本生成图片",
          "parse_type": "json",
          "request_schema": {
            "type": "object",
            "properties": {
              "text_prompts": { "type": "array" },
              "cfg_scale": { "type": "integer", "default": 7 },
              "samples": { "type": "integer", "default": 1 },
              "steps": { "type": "integer", "default": 30 }
            }
          },
          "rate_limit": "1s"
        }
      ],
      "headers": {
        "Accept": "application/json",
        "Content-Type": "application/json",
        "Authorization": "Bearer ${STABILITY_API_KEY}"
      },
      "quality_score": 8,
      "notes": "支持官方与开源国风 LoRA,可控性高"
    },
    {
      "id": "openai_dalle",
      "name": "OpenAI DALL·E 3 API",
      "category": "image_generation_api",
      "base_url": "https://api.openai.com",
      "endpoints": [
        {
          "path": "/v1/images/generations",
          "method": "POST",
          "description": "DALL·E 3 文生图,对中文 Prompt 理解最佳",
          "parse_type": "json",
          "request_schema": {
            "type": "object",
            "properties": {
              "model": { "type": "string", "enum": ["dall-e-3"] },
              "prompt": { "type": "string" },
              "size": { "type": "string", "enum": ["1024x1024", "1792x1024", "1024x1792"] },
              "quality": { "type": "string", "enum": ["standard", "hd"] },
              "n": { "type": "integer", "default": 1 }
            }
          },
          "rate_limit": "2s"
        }
      ],
      "headers": {
        "Accept": "application/json",
        "Content-Type": "application/json",
        "Authorization": "Bearer ${OPENAI_API_KEY}"
      },
      "quality_score": 9,
      "notes": "角色一致性与古风氛围理解力强,适合作为默认图片生成器"
    },
    {
      "id": "github_history_costume_repos",
      "name": "GitHub - 中国古代服饰数据集",
      "category": "history_reference",
      "base_url": "https://api.github.com",
      "endpoints": [
        {
          "path": "/search/repositories?q=chinese+costume+hanfu",
          "method": "GET",
          "description": "搜索汉服/古代服饰相关开源数据集",
          "parse_type": "json",
          "json_paths": {
            "repositories": "$.items",
            "name": "$.items[*].name",
            "url": "$.items[*].html_url",
            "description": "$.items[*].description",
            "stars": "$.items[*].stargazers_count"
          },
          "rate_limit": "2s"
        }
      ],
      "headers": {
        "Accept": "application/vnd.github+json",
        "User-Agent": "LemonAI-Hunter"
      },
      "quality_score": 7,
      "notes": "可能包含汉服图像数据集 prompt 库"
    },
    {
      "id": "zdict_chengyu",
      "name": "汉典 - 成语词典",
      "category": "literature_reference",
      "base_url": "https://www.zdic.net",
      "endpoints": [
        {
          "path": "/hans/{keyword}",
          "method": "GET",
          "description": "成语/字词释义与出处,用于对白校验",
          "parse_type": "html",
          "selectors": {
            "definition": ".defs",
            "source": ".cit"
          },
          "rate_limit": "2s"
        }
      ],
      "headers": {
        "Accept": "text/html"
      },
      "quality_score": 9,
      "notes": "权威汉语辞书网站,校验古文用词准确性"
    },
    {
      "id": "tiktok_gufeng_short_drama",
      "name": "抖音 - 古风短剧/穿越短剧",
      "category": "trend_analysis",
      "base_url": "https://www.douyin.com",
      "endpoints": [
        {
          "path": "/search/{keyword}",
          "method": "GET",
          "description": "搜索古风短剧热门视频,追踪流行梗趋势",
          "parse_type": "html",
          "selectors": {
            "title": "[data-e2e='search-card-video-caption']",
            "author": "[data-e2e='search-card-user-username']",
            "cover": "img[srcset]"
          },
          "rate_limit": "3s"
        }
      ],
      "headers": {
        "Accept": "text/html",
        "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64)"
      },
      "quality_score": 6,
      "notes": "反爬严格,需模拟真实浏览器行为或Cookie"
    },
    {
      "id": "xiaohongshu_gufeng",
      "name": "小红书 - 汉服/古风穿搭",
      "category": "trend_analysis",
      "base_url": "https://www.xiaohongshu.com",
      "endpoints": [
        {
          "path": "/search_result?keyword=汉服&search_type=note",
          "method": "GET",
          "description": "汉服穿搭与古风妆造,用于角色图服饰参考",
          "parse_type": "html",
          "selectors": {
            "title": ".note-title",
            "image": ".note-image",
            "likes": ".like-count"
          },
          "rate_limit": "3s"
        }
      ],
      "headers": {
        "Accept": "text/html"
      },
      "quality_score": 6,
      "notes": "反爬强度高,适合作为服饰潮流风向参考"
    },
    {
      "id": "novelai_api",
      "name": "NovelAI API",
      "category": "image_generation_api",
      "base_url": "https://api.novelai.net",
      "endpoints": [
        {
          "path": "/ai/generate-image",
          "method": "POST",
          "description": "二次元风格文生图,适合动漫古风角色",
          "parse_type": "binary",
          "request_schema": {
            "type": "object",
            "properties": {
              "input": { "type": "string" },
              "model": { "type": "string", "default": "safe-diffusion" },
              "parameters": { "type": "object" }
            }
          },
          "rate_limit": "2s"
        }
      ],
      "headers": {
        "Accept": "application/json",
        "Content-Type": "application/json",
        "Authorization": "Bearer ${NOVELAI_API_KEY}"
      },
      "quality_score": 8,
      "notes": "二次元古风首选,角色面部精细度高"
    }
  ],
  "default_crawl_schedule": {
    "market_research": "0 9 * * 1",
    "trend_analysis": "0 10 * * 1",
    "literature_reference": "0 0 1 * *",
    "history_reference": "0 0 1 * *",
    "case_study": "0 12 * * 3",
    "image_generation_api": "0 0 1 * 3"
  }
}