← Back to Skills Marketplace
drtony1

WIPO 小分子药物专利周报

by DrToNy1 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
48
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install wipo-patent-weekly
Description
WIPO 小分子药物专利周报。每周定期检索 WIPO PatentScope 上新发布的小分子药物相关专利,生成 HTML 报告并上传 Google Drive。 当用户提到「专利周报」「WIPO专利」「专利检索」「小分子专利」时触发。 也用于 cron 定时任务:每周四 16:30 自动执行。
README (SKILL.md)

WIPO 小分子药物专利周报

执行流程

Step 1: 计算日期范围(上周三到上周四)
Step 2: 运行 wipo_search.py 抓取专利数据 → JSON
Step 3: 运行 wipo_generate_report.py 生成 HTML 报告
Step 4: 上传到 Google Drive
Step 5: 输出摘要信息

Step 1: 日期范围

  • 默认日期范围:上周三到上周四(即运行日的前一周三至周四)
  • 如果手动指定日期,使用指定日期
  • 日期格式:DD.MM.YYYY(WIPO PatentScope 要求格式)

运行脚本自动计算日期:

python3 scripts/wipo_search.py \x3Cstart_date> \x3Cend_date>

或手动计算:

python3 -c "
from datetime import datetime, timedelta
today = datetime.now()
# 上周四
last_thu = today - timedelta(days=(today.weekday() - 3) % 7 + 7) if today.weekday() >= 3 else today - timedelta(days=today.weekday() + 4)
last_wed = last_thu - timedelta(days=1)
print(f'{last_wed.strftime(\"%d.%m.%Y\")} {last_thu.strftime(\"%d.%m.%Y\")}')
"

Step 2: 抓取专利数据

cd ~/.openclaw/workspace
python3 scripts/wipo_search.py \x3Cstart_date> \x3Cend_date>

输出: wipo_reports/wipo_patent_weekly_\x3Cdate>.json

技术说明:

  • 使用 Playwright + Chromium 无头浏览器渲染 WIPO PatentScope JS 页面
  • 必须先访问主页 search.jsf 建立 session,再跳转结果页
  • 翻页通过 JS DOM 操作 a.lb-next 点击实现
  • 每页 10 条,最多翻 20 页(200 条)

查询条件:

  • IPC 分类:C07D(杂环化合物)/ C07C(无环化合物)/ A61K31(含有机有效成分的医药配制品)
  • 关键词:inhibitor/antagonist/agonist/degrader/PROTAC/small molecule/binder/ligand/modulator(标题+摘要)
  • 中文关键词:抑制剂/拮抗剂/激动剂/降解剂/小分子/结合剂/配体(全文)
  • 国家:WO / CN / US
  • 日期范围:指定

Step 3: 生成 HTML 报告

cd ~/.openclaw/workspace
python3 scripts/wipo_generate_report.py wipo_reports/wipo_patent_weekly_\x3Cdate>.json

输出: wipo_reports/wipo_patent_weekly_\x3Cdate>.html

报告内容:

  • 本周概览(专利总数、WO/CN/US 分布、可识别靶点数)
  • 热门靶点 TOP 20(柱状图)
  • 申请人 TOP 15(柱状图)
  • IPC 分类分布
  • 专利明细表(可滚动,含靶点/模式标签)

靶点提取规则:references/target-rules.md

Step 4: 上传 Google Drive

rclone copy wipo_reports/wipo_patent_weekly_\x3Cdate>.html gdrive:OpenClaw/专利更新/ --timeout 60s

Step 5: 输出摘要

格式:

🔬 WIPO 小分子药物专利周报 | \x3C日期范围>
📊 专利总数: \x3CN> | WO: \x3CN> | CN: \x3CN> | US: \x3CN>
🎯 热门靶点: \x3Ctop 5 targets>
🏢 申请人 TOP 3: \x3Ctop 3 applicants>

报告已上传至 Google Drive: OpenClaw/专利更新/

注意事项

  • WIPO PatentScope 是 JSF 框架,需要浏览器渲染,web_fetch 无法直接抓取
  • 如果抓取失败(网络超时、WIPO 变更页面结构等),报告失败原因
  • 不要同步到 GitHub
  • 本地保留副本在 wipo_reports/ 目录
Usage Guidance
Review and control the local scripts before installing, confirm the rclone `gdrive` account and destination are dedicated to this report, and only enable the weekly cron job if you are comfortable with automatic cloud uploads.
Capability Assessment
Purpose & Capability
The stated purpose is coherent: collect public WIPO PatentScope results, generate an HTML report, and upload it to Google Drive. The main implementation, however, is not present in the supplied artifacts.
Instruction Scope
The workflow directs the agent or cron job to run local Python helper scripts and a cloud upload command, but those helpers are outside the reviewed artifact set and there is no explicit per-run approval gate for the scheduled upload.
Install Mechanism
The registry says there are no required binaries, credentials, config paths, or install spec, but the instructions require Python scripts, Playwright/Chromium behavior, and rclone; the core scripts are absent from the manifest.
Credentials
The Google Drive upload is purpose-aligned and folder-scoped, but it relies on an existing local rclone `gdrive` profile/credential that is not declared in the skill metadata.
Persistence & Privilege
Weekly cron execution is explicitly disclosed, but the user should only enable it if they intentionally want a recurring job that runs and uploads without a manual prompt.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install wipo-patent-weekly
  3. After installation, invoke the skill by name or use /wipo-patent-weekly
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Initial release: WIPO PatentScope scraper + HTML report generator with 80+ target extraction rules
Metadata
Slug wipo-patent-weekly
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is WIPO 小分子药物专利周报?

WIPO 小分子药物专利周报。每周定期检索 WIPO PatentScope 上新发布的小分子药物相关专利,生成 HTML 报告并上传 Google Drive。 当用户提到「专利周报」「WIPO专利」「专利检索」「小分子专利」时触发。 也用于 cron 定时任务:每周四 16:30 自动执行。 It is an AI Agent Skill for Claude Code / OpenClaw, with 48 downloads so far.

How do I install WIPO 小分子药物专利周报?

Run "/install wipo-patent-weekly" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is WIPO 小分子药物专利周报 free?

Yes, WIPO 小分子药物专利周报 is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does WIPO 小分子药物专利周报 support?

WIPO 小分子药物专利周报 is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created WIPO 小分子药物专利周报?

It is built and maintained by DrToNy1 (@drtony1); the current version is v1.0.0.

💬 Comments