Skip to content
cookjohn avatar

Cnki Navigate Pages

Pagination and sort-order changes for CNKI search results, run through a single async script call.

CCM score
60 of 100
skills.sh installs
369
GitHub stars
1.1K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers next, previous, and specific page navigation, plus five sort modes: relevance, date, citations, downloads, and comprehensive
  • Includes ready-to-run evaluate_script snippets that click the page or sort control and wait for the page counter to change
  • Stops with a captcha error when #tcaptcha_transform_dy is visible, so the flow never proceeds past a challenge
  • Designed for CNKI result pages where the user wants more results or a different ordering

Install

$ npx -y skills add cookjohn/cnki-skills --skill cnki-navigate-pages -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

CNKI Results Pagination and Sorting

All operations use a single async evaluate_script — no snapshot or wait_for needed.

Arguments

$ARGUMENTS should be one of:

  • next / previous / page N — pagination
  • sort by date / sort by citations / sort by downloads / sort by relevance / sort by comprehensive — sorting

Pagination (single evaluate_script)

Replace ACTION_HERE with "next", "previous", or "page 3":

async () => {
  const cap = document.querySelector('#tcaptcha_transform_dy');
  if (cap && cap.getBoundingClientRect().top >= 0) return { error: 'captcha' };

  const action = "ACTION_HERE";
  const pageLinks = document.querySelectorAll('.pages a');
  const prevMark = document.querySelector('.countPageMark')?.innerText;

Details

Repository
github.com/cookjohn/cnki-skills
Categories
Browser Automation & Scraping, Research & Academic
First seen
Jun 3, 2026

Questions

How do I install the cnki-navigate-pages skill?

Run npx -y skills add cookjohn/cnki-skills --skill cnki-navigate-pages -y in your project. The skill then lets the agent move through CNKI search result pages to the next, previous or a specific page.

What does cnki-navigate-pages do on CNKI?

It navigates CNKI search result pages, moving to the next, previous or a specific page, and changes the sort order of results. It runs as one async script call, with captcha detection that stops when a slider captcha appears.

Which sort orders can cnki-navigate-pages apply?

It can sort CNKI results by relevance, date, citations, downloads or comprehensive ranking. After each sort it reports the new page, total results and the active sort option.

Where does cnki-navigate-pages sit in its category?

It is in the Browser Automation & Scraping category, next to agent-browser, playwright-cli, anti-detect-browser and browser-act. It is a narrow CNKI-specific skill that works on the search results pages of the Chinese CNKI site.

More from cookjohn/cnki-skills

All 10

Similar to Cnki Navigate Pages

More Browser Automation & Scraping