
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-codeInstalls 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— paginationsort 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