cnki-paper-detail
Extract full paper details from a CNKI paper page including title, authors, affiliations, abstract, keywords, fund, classification. Use when the user needs detailed information about a specific paper.
By cookjohn · 614 installs
npx skills add cookjohn/cnki-skills --skill cnki-paper-detail
Source repository · Upstream listing
CNKI Paper Detail Extraction
Extract complete metadata from a CNKI paper detail page.
Arguments
$ARGUMENTS is optionally a CNKI paper detail URL (containing kcms2/article/abstract ). If not provided, assumes the current page is already a paper detail page.
Steps
1. Navigate to the paper page (if URL provided)
If $ARGUMENTS contains a URL:
Use mcp chrome devtools navigate page with the URL.
Use mcp chrome devtools wait for with text ["摘要"] and timeout 15000.
2. Check for captcha
Use mcp chrome devtools take snapshot . If "拖动下方拼图完成验证" found, notify user:
CNKI 正在显示滑块验证码。请在 Chrome 浏览器中手动完成拼图验证,完成后告诉我继续。
3. Extract paper metadata via JavaScript
Use mcp chrome devtools evaluate script with this function:
4. Format and present the output
5. Fallback: snapshot based parsing
If JS extraction fails, use mcp chrome devtools take snapshot and parse the accessibility tree:
Title : heading level 1 element
Authors : link elements whose URLs contain kcms2/author/detail
Affiliations : link elements whose URLs contain kcms2/organ/detail
Abstract : StaticText following "摘要:"
Keywords : link elements whose URLs contain kcms2/keyword/detail
Fund : link elements following "基金资助:"
Classification : StaticText following "分类号:"
Verified DOM Selectors
Data Selector Notes
Paper section .brief Main paper info container
Title .brief h1 May contain icons, clean text needed
Authors .brief h3.author:first of type a Text has superscript numbers (e.g., "张三1")
Affiliations .brief h3.author:nth of type(2) a Text starts with "N." (e.g., "1.北京大学")
Abstract .abstract text Full abstract text
Keywords p.keywords a Semicolon separated keyword links
Fund p.funds Fund information text
Classification .clc code CLC classification codes
Journal .doc top a Source journal link
Online first .brief .icon shoufa Present if paper is online first
Citation tabs ul.module tab.tpl lieteratures li data id attr identifies type