📥 CNKI Batch Downloader (Bilingual / 双语版)
中文介绍 | English Description
🇨🇳 中文介绍
一款现代化、高颜值的中国知网 (CNKI) 文献批量下载工具,支持中英双语界面。
v1.0 重构版不仅修复了知网改版导致的“按钮消失”问题,还引入了国际化支持和智能风控系统。专为科研人员设计,支持 Shift 键多选、验证码智能拦截修复、WebVPN 适配以及可视化下载报告。
✨ 核心功能
- 🌐 中英双语支持 (Bilingual)
- 脚本自动识别浏览器语言环境。
- 面板内置切换按钮,可随时一键切换 中文 / English 界面。
- 🛡️ 智能风控与续传
- 验证码拦截:当知网触发滑块验证时,脚本会自动暂停任务并弹窗提示。
- 无缝续传:您只需在新窗口手动完成验证,点击脚本面板的“我已解除”,任务即可从断点处继续,无需重头开始。
- 🚀 高效批量管理
- Shift 键连选:按住
Shift 键点击复选框,可一键选中两个节点之间的所有论文,效率倍增。
- 智能驻守:采用
MutationObserver 监听 DOM,完美适配知网的单页应用 (SPA) 跳转,确保下载按钮始终在线。
- 📊 可视化结果报告
- 任务结束后自动生成统计报告:🟢成功、🔴失败、💰需付费、🔁已存在。
- 支持对失败项目进行一键重试。
⚙️ 使用前必读 (配置指南)
为了确保脚本能正常工作,请务必进行以下设置:
- 浏览器设置:
- 请在浏览器设置中 关闭 “下载前询问每个文件的保存位置”。
- (否则每下载一个文件都会弹窗询问,无法挂机)
- 油猴插件 (Tampermonkey) 设置:
- 进入 Tampermonkey 管理面板 -> 脚本列表 -> 点击本脚本 -> 设置。
- 将 下载模式 (Download Mode) 设置为
Browser API。
- (必须设置此项,否则文件无法自动归档到文件夹,文件名也会乱码)
🇺🇸 English Description
A modern, aesthetic, and efficient batch downloading tool for CNKI, featuring a bilingual interface.
The v1.0 refactored version fixes the "missing button" issue caused by CNKI updates and introduces internationalization support. It features Shift-key multi-select, Smart CAPTCHA recovery, WebVPN support, and Visualized Reports.
✨ Key Features
- 🌐 Bilingual Support
- Automatically detects browser language preferences.
- Includes a toggle button to switch between Chinese / English interfaces instantly.
- 🛡️ Smart Anti-Blocking & Recovery
- CAPTCHA Interception: Automatically pauses the task when CNKI triggers a slider CAPTCHA.
- Seamless Resume: Simply solve the CAPTCHA in the popped-up window and click "I've Solved it" on the dashboard. The task resumes exactly where it left off.
- 🚀 Efficient Batch Operations
- Shift-Key Multi-Select: Hold the
Shift key and click checkboxes to select all papers between two points, doubling your efficiency.
- Smart Monitoring: Uses
MutationObserver to perfectly adapt to CNKI's SPA navigation, ensuring the download button is always visible.
- 📊 Visualized Report
- Generates a summary report after the task: 🟢Success, 🔴Failed, 💰Pay Req, 🔁Exists.
- Supports One-Click Retry for failed items.
⚙️ Configuration (Must Read)
To ensure the script works correctly for batch downloading:
- Browser Settings:
- Please Disable "Ask where to save each file" in your browser settings.
- (Otherwise, a popup will interrupt the batch process for every file)
- Tampermonkey Settings:
- Go to Tampermonkey Dashboard -> Installed Scripts -> Click this script -> Settings.
- Set Download Mode to
Browser API.
- (Required for automatic folder archiving and correct filenames)
Author: 爱代码的小黄人
License: MIT