cookjohn avatar

Cnki Navigate Pages

Handles pagination and sorting on CNKI search results with a single evaluate_script call per action. You can jump to the next page, previous page, or a specific page number, plus switch between five sort modes (relevance, date, citations, downloads, comprehensive). The implementation includes captcha detection by checking if the Tencent captcha element is visible, and waits for the page counter to change before returning to confirm the navigation actually happened. It's a straightforward wrapper around clicking the Chinese pagination links and sort buttons, with timeout protection if the page doesn't update within 15 seconds. Use this when you need to browse through CNKI results programmatically without manually clicking through their interface.

skills.sh installs
349
GitHub stars
1.1K
last updated
Aug 21, 2026

Install

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

Installs into .claude/skills of the current project.

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;

Sponsors

Details

Repository
github.com/cookjohn/cnki-skills
First seen
Jun 3, 2026

More from cookjohn/cnki-skills

All 10

Recommended

1juliusbrussee avatarcavemanjuliusbrussee/cavemanUltra-compressed communication mode. Cuts output tokens 65% (measured) by speaking like caveman while keeping full technical accuracy. Supports intensity levels618.3Kskills.sh installs
2mattpocock avatargrill-memattpocock/skillsA relentless interview to sharpen a plan or design.1.5Mskills.sh installs
3shadcn avatarimproveshadcn/improveSurvey any codebase as a senior advisor and produce prioritized, self-contained implementation plans for OTHER models/agents to execute. Strictly read-only on s40Kskills.sh installs
4obra avatarsystematic-debuggingobra/superpowersUse when encountering any bug, test failure, or unexpected behavior, before proposing fixes326.7Kskills.sh installs
5forrestchang avatarkarpathy-guidelinesforrestchang/andrej-karpathy-skillsBehavioral guidelines to reduce common LLM coding mistakes through explicit assumptions, simplicity, and verifiable success criteria.17.9Kskills.sh installs
6vercel-labs avatarfind-skillsvercel-labs/skillsHelps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", or express int4.3Mskills.sh installs