films-search

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Films Search Skill

Films Search Skill

搜索影视资源(电影、电视剧、动漫),通过实时爬虫深度抓取资源页面,从各网盘平台获取公开分享的资源链接。
Search for film and TV resources (movies, TV series, anime). Deeply crawl resource pages via real-time web scrapers to obtain publicly shared resource links from various cloud drive platforms.

前置条件

Prerequisites

  • web-search skill(必需,用于搜索发现资源页面)
  • web-search skill (required, used to search and discover resource pages)

命令

Commands

搜索资源

Search for Resources

bash
bash "$SKILLS_ROOT/films-search/scripts/film-search.sh" search "关键词" [选项]
选项:
参数说明默认值
--pan <type>
筛选网盘类型:
quark
,
baidu
,
aliyun
,
uc
,
all
all
--quality <q>
筛选画质:
4k
,
1080p
,
720p
,
all
all
--limit <n>
每个平台最大结果数
5
--engine <e>
搜索引擎:
deep
,
web
deep
引擎说明:
  • deep
    (默认,推荐)— web-search 搜索发现资源页面 + JavaScript 深度抓取提取网盘链接和提取码,结果最准确
  • web
    — 仅从 web-search 搜索引擎摘要中提取链接(速度快,但准确率较低,不做深度抓取)
示例:
bash
undefined
bash
bash "$SKILLS_ROOT/films-search/scripts/film-search.sh" search "keyword" [options]
Options:
ParameterDescriptionDefault Value
--pan <type>
Filter by cloud drive type:
quark
,
baidu
,
aliyun
,
uc
,
all
all
--quality <q>
Filter by video quality:
4k
,
1080p
,
720p
,
all
all
--limit <n>
Maximum number of results per platform
5
--engine <e>
Search engine:
deep
,
web
deep
Engine Explanation:
  • deep
    (default, recommended) — Use web-search skill to find resource pages + JavaScript deep crawling to extract cloud drive links and access codes, with the most accurate results
  • web
    — Only extract links from web-search engine summaries (fast, but lower accuracy, no deep crawling)
Examples:
bash
undefined

搜索所有平台的资源(默认使用深度搜索)

Search resources on all platforms (uses deep search by default)

bash "$SKILLS_ROOT/films-search/scripts/film-search.sh" search "流浪地球2"
bash "$SKILLS_ROOT/films-search/scripts/film-search.sh" search "The Wandering Earth 2"

只搜夸克网盘 4K 资源

Only search for 4K resources on Quark cloud drive

bash "$SKILLS_ROOT/films-search/scripts/film-search.sh" search "流浪地球2" --pan quark --quality 4k
bash "$SKILLS_ROOT/films-search/scripts/film-search.sh" search "The Wandering Earth 2" --pan quark --quality 4k

限制结果数量

Limit the number of results

bash "$SKILLS_ROOT/films-search/scripts/film-search.sh" search "流浪地球2" --limit 10
bash "$SKILLS_ROOT/films-search/scripts/film-search.sh" search "The Wandering Earth 2" --limit 10

使用浅层搜索(不深度抓取页面)

Use shallow search (no deep page crawling)

bash "$SKILLS_ROOT/films-search/scripts/film-search.sh" search "流浪地球2" --engine web

Windows 系统使用 PowerShell 脚本:
```powershell
powershell -File "$SKILLS_ROOT/films-search/scripts/film-search.ps1" search "流浪地球2" --pan quark
bash "$SKILLS_ROOT/films-search/scripts/film-search.sh" search "The Wandering Earth 2" --engine web

For Windows systems, use the PowerShell script:
```powershell
powershell -File "$SKILLS_ROOT/films-search/scripts/film-search.ps1" search "The Wandering Earth 2" --pan quark

热门推荐

Hot Recommendations

bash
bash "$SKILLS_ROOT/films-search/scripts/film-search.sh" hot "2025年热门电影"
本质上是以推荐类关键词调用搜索,返回相关网盘资源。
bash
bash "$SKILLS_ROOT/films-search/scripts/film-search.sh" hot "2025 Popular Movies"
Essentially, it calls the search with recommendation-related keywords and returns relevant cloud drive resources.

解析跳转链接

Resolve Redirect Links

bash
bash "$SKILLS_ROOT/films-search/scripts/film-search.sh" resolve "https://example.com/goto/xxx"
当搜索结果中的链接需要二次跳转时,用此命令解析出真实网盘地址。
bash
bash "$SKILLS_ROOT/films-search/scripts/film-search.sh" resolve "https://example.com/goto/xxx"
When links in search results require a second redirect, use this command to resolve the real cloud drive address.

Agent 使用流程

Agent Usage Flow

  1. 用户说「帮我找 XXX 电影」→ 执行
    search "XXX"
  2. 解析返回的 JSON,提取网盘链接
  3. 按网盘类型和画质分组呈现给用户
  4. 如果结果中有提取码 (
    extractCode
    ),一并展示给用户
  5. 如果结果中有
    pageUrl
    但没有直接
    url
    ,用
    resolve
    命令获取真实地址
示例对话:
用户:帮我找一下流浪地球2的夸克网盘资源,要4K的
Agent:
  1. 执行
    search "流浪地球2" --pan quark --quality 4k
  2. 从 JSON 结果中取出匹配项
  3. 返回:标题 + 画质 + 夸克网盘链接 + 提取码(如有)
  1. User says: "Help me find the movie XXX" → Execute
    search "XXX"
  2. Parse the returned JSON and extract cloud drive links
  3. Present to the user grouped by cloud drive type and video quality
  4. If there is an access code (
    extractCode
    ) in the results, display it together
  5. If there is a
    pageUrl
    but no direct
    url
    , use the
    resolve
    command to get the real address
Example Dialogue:
User: Help me find 4K Quark cloud drive resources for The Wandering Earth 2
Agent:
  1. Execute
    search "The Wandering Earth 2" --pan quark --quality 4k
  2. Extract matching items from the JSON results
  3. Return: Title + Video Quality + Quark Cloud Drive Link + Access Code (if any)

输出格式

Output Format

所有命令输出 JSON,结构如下:
json
{
  "success": true,
  "data": {
    "query": "流浪地球2",
    "total": 5,
    "results": [
      {
        "title": "资源标题",
        "pan": "quark",
        "url": "https://pan.quark.cn/s/xxx",
        "quality": "4K",
        "extractCode": "ab12",
        "source": "deep-search",
        "pageUrl": "https://example.com/resource/123"
      }
    ]
  }
}
字段说明:
  • pan
    : 网盘类型 —
    quark
    (夸克),
    baidu
    (百度),
    aliyun
    (阿里),
    uc
    (UC),
    magnet
    (磁力)
  • quality
    : 检测到的画质 —
    4K
    ,
    1080P
    ,
    720P
    , 空字符串表示未检测到
  • source
    : 结果来源 —
    deep-search
    (深度抓取),
    web-search
    (搜索摘要)
  • url
    : 网盘分享链接(可直接访问)
  • extractCode
    : 提取码/密码(如果检测到)
  • pageUrl
    : 结果来源页面 URL
All commands output JSON with the following structure:
json
{
  "success": true,
  "data": {
    "query": "The Wandering Earth 2",
    "total": 5,
    "results": [
      {
        "title": "Resource Title",
        "pan": "quark",
        "url": "https://pan.quark.cn/s/xxx",
        "quality": "4K",
        "extractCode": "ab12",
        "source": "deep-search",
        "pageUrl": "https://example.com/resource/123"
      }
    ]
  }
}
Field Explanations:
  • pan
    : Cloud drive type —
    quark
    (Quark),
    baidu
    (Baidu),
    aliyun
    (Alibaba),
    uc
    (UC),
    magnet
    (Magnet Link)
  • quality
    : Detected video quality —
    4K
    ,
    1080P
    ,
    720P
    , empty string if not detected
  • source
    : Result source —
    deep-search
    (Deep Crawling),
    web-search
    (Search Summary)
  • url
    : Directly accessible cloud drive sharing link
  • extractCode
    : Access code/password (if detected)
  • pageUrl
    : URL of the source page for the result

配置

Configuration

编辑
films-search/.env
可自定义偏好:
bash
undefined
Edit
films-search/.env
to customize preferences:
bash
undefined

偏好的网盘类型(逗号分隔,排在前面的优先展示)

Preferred cloud drive types (comma-separated, earlier ones are prioritized)

FILM_SEARCH_PREFERRED_PAN=quark,aliyun,baidu,uc
FILM_SEARCH_PREFERRED_PAN=quark,aliyun,baidu,uc

深度搜索开关(推荐开启)

Deep search toggle (recommended to enable)

FILM_SEARCH_DEEP_ENABLED=true
FILM_SEARCH_DEEP_ENABLED=true

每次搜索最多访问的结果页面数

Maximum number of result pages accessed per search

FILM_SEARCH_DEEP_MAX_PAGES=6
FILM_SEARCH_DEEP_MAX_PAGES=6

并发抓取页面数

Number of concurrent page crawls

FILM_SEARCH_DEEP_CONCURRENCY=4
undefined
FILM_SEARCH_DEEP_CONCURRENCY=4
undefined

注意事项

Notes

  • 搜索建议使用中文片名,效果最好
  • 深度搜索(
    --engine deep
    )比浅层搜索多 2-3 秒,但结果准确得多
  • 深度搜索需要 web-search skill 启用,首次搜索可能需要等待浏览器启动
  • 网盘分享链接可能随时失效,建议尽快使用
  • It is recommended to use Chinese film titles for the best search results
  • Deep search (
    --engine deep
    ) takes 2-3 seconds longer than shallow search, but results are much more accurate
  • Deep search requires the web-search skill to be enabled; the first search may require waiting for the browser to start
  • Cloud drive sharing links may become invalid at any time, so it is recommended to use them as soon as possible

免责声明

Disclaimer

本工具仅供个人学习和研究使用。不托管、不分发、不提供任何版权内容,仅聚合搜索引擎上公开可访问的链接。请遵守所在地区的法律法规。
This tool is for personal study and research only. It does not host, distribute, or provide any copyrighted content, and only aggregates publicly accessible links from search engines. Please comply with the laws and regulations of your region.