npx skills add https://modelscope.cn/skills/@cookjohn/cnki-parse-results
wentorai/research-claw
cnki-parse-results
Parse current CNKI search results page into structured paper data (title, authors, journal, date, citations). Use after a search has been performed and you need to extract the results.
Installation
npx skills add wentorai/research-claw --skill cnki-parse-results
Similar popular skills
Related neighbors and high-traction skills in the same topics — useful to compare before installing.
Query Playwright CI test results from the aggregated DuckDB database. Answers questions about f…
9 installsFetch KBO game schedules and results for a specific date with the kbo-game npm package. Use whe…
4.8K installsCheck Korean Lotto draw results, latest rounds, and ticket matches with the k-lotto npm package…
4.8K installs케이리그 경기 결과와 현재 순위를 날짜/팀 기준으로 조회한다. 공식 JSON 엔드포인트와 kleague-resu…
4.7K installsKBL 한국프로농구 경기 결과와 현재 팀 순위를 날짜/팀 기준으로 조회한다. 공식 JSON 엔드포인트와 k…
3.6K installsDocuments the results of a completed experiment or A/B test with statistical analysis, learning…
637 installsAlso in this package
Other skills from wentorai/research-claw · top by installs.
npx skills add wentorai/research-claw
More details
Agent compatibility
Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.
Also listed on
Alternate registries and mirrors of this skill.
Repository health
main
Package contents
Files included with this skill beyond the listing page.
-
skill md
SKILL.md4,996 B -
docs
SUMMARY.md210 B
History
- First seen on skills.sh
- First recorded snapshot · 3 installs
SKILL.md
CNKI Parse Search Results
RC browser tool: navigate with
browser action=open url="..."; run the JS in each step viabrowser action=act kind=evaluate fn="<the async function shown>"(the whole function body goes intofn). Never pass aprofile— RC uses its default managed Chrome (CDP 18800).
Extract structured paper data from the current CNKI search results page.
Prerequisites
The current Chrome page must be a CNKI search results page (URL contains kns.cnki.net and page shows "条结果").
Steps
1. Verify we are on a results page
Use browser action=snapshot mode=efficient. Verify the page contains "条结果". If not, inform the user that no search results page is currently open.
Check for captcha ("拖动下方拼图完成验证") - if found, notify user to solve it manually.
2. Extract results via JavaScript
Use browser action=act kind=evaluate with this function:
() => {
const rows = document.querySelectorAll('.result-table-list tbody tr');
const checkboxes = document.querySelectorAll('.result-table-list tbody input.cbItem');
const results = Array.from(rows).map((row, index) => {
const nameCell = row.querySelector('td.name');
const titleLink = nameCell?.querySelector('a.fz14');
const authorCell = row.querySelector('td.author');
const sourceCell = row.querySelector('td.source');
const dateCell = row.querySelector('td.date');
const dataCell = row.querySelector('td.data');
const quoteCell = row.querySelector('td.quote');
const downloadCell = row.querySelector('td.download');
const isOnlineFirst = !!nameCell?.querySelector('.marktip');
return {
number: index + 1,
title: titleLink?.innerText?.trim() || '',
url: titleLink?.href || '',
exportId: checkboxes[index]?.value || '',
authors: Array.from(authorCell?.querySelectorAll('a.KnowledgeNetLink') || []).map(a => a.innerText?.trim()),
journal: sourceCell?.querySelector('a')?.innerText?.trim() || '',
date: dateCell?.innerText?.trim() || '',
database: dataCell?.innerText?.trim() || '',
citations: quoteCell?.innerText?.trim() || '',
downloads: downloadCell?.innerText?.trim() || '',
isOnlineFirst: isOnlineFirst
};
});
const totalText = document.querySelector('.pagerTitleCell')?.innerText || '';
const totalMatch = totalText.match(/([\d,]+)/);
const pageInfo = document.querySelector('.countPageMark')?.innerText || '';
return {
papers: results,
totalCount: totalMatch ? totalMatch[1] : 'unknown',
pageInfo: pageInfo
};
}
3. Present results
Format as a numbered list:
CNKI search results ({totalCount} total, page {pageInfo}):
1. {title} {isOnlineFirst ? "[网络首发]" : ""}
Authors: {authors joined by "; "}
Journal: {journal} | Date: {date} | Type: {database}
Citations: {citations} | Downloads: {downloads}
URL: {url}
2. ...
4. Fallback: snapshot-based parsing
If JavaScript returns empty (DOM structure changed), use browser action=snapshot mode=efficient and parse the accessibility tree manually:
Look for the repeating pattern:
checkbox→StaticText(number) →linkwith URL containingkcms2/article/abstract(title) →links with URL containingkcms2/author/detail(authors) →linkwith URL containingnavi.cnki.net/knavi/detail(journal) →StaticText(date) →StaticText(database type)
Verified DOM Selectors (CNKI uses jQuery, stable semantic class names)
| Data | Selector | Notes |
|---|---|---|
| Table | .result-table-list tbody tr |
Each row = one paper |
| Checkbox | input.cbItem |
value = export encrypted ID |
| Number | td.seq |
Row sequence number |
| Title | td.name a.fz14 |
Paper title link |
| Authors | td.author a.KnowledgeNetLink |
Author name links |
| Journal | td.source a |
Journal/source link |
| Date | td.date |
Publication date text |
| DB Type | td.data |
Database type (期刊/学位论文) |
| Citations | td.quote |
Citation count |
| Downloads | td.download |
Download count |
| Online 1st | td.name .marktip |
"网络首发" label |
| Total | .pagerTitleCell |
"共找到 X 条结果" |
| Page | .countPageMark |
"1/300" format |