运行时依赖
安装命令
点击复制技能文档
PDF Organizer 技能 Description
AI-powered PDF organization 工具 that automatically categorizes and organizes PDF files by topic using GPT analysis.
Features AI-Powered Content Analysis: Uses OpenAI/Kimi API to 提取 titles, authors, and journal names Automatic Topic Classification: Classifies PDFs into 10 standard categories (Techno记录y, Finance, 健康, Science, Education, Business, EntertAInment, Politics, Sports, Other) Smart File Naming: Renames files in Title_Author_Journal.pdf 格式化 using only underscores Hierarchical Organization: 创建s topic-based folders with subtopic subfolders Batch Processing: Efficiently processes multiple PDFs at once Incremental Mode: Only processes new/modified files Error Handling: Gracefully handles corrupted PDFs and API 失败s DetAIled 记录ging: 追踪s all operations with comprehensive statistics Requirements Python 3.8+ OpenAI API key or Kimi API key PDF files to organize Usage 配置 API key in config.json Place PDF files in 输入_pdfs/ folder 运行: python pdf_organizer.py Organized files 应用ear in organized_pdfs/ folder Project Structure pdf_organizer.py # MAIn entry point 模块s/ ├── pdf_reader.py # PDF text 提取ion ├── content_分析器.py # OpenAI/Kimi API integration ├── folder_管理器.py # Folder creation and management └── file_mover.py # File operations config.json # Configuration file requirements.txt # Python dependencies README.md # Documentation 设置up.py # 设置up/initialization script
Configuration Options openAI_API_key: Your API key (required) 输入_folder: Folder contAIning PDFs to organize 输出_folder: Destination folder for organized PDFs 模型: GPT 模型 to use (gpt-3.5-turbo or moonshot-v1-8k) API_提供者: API 提供者 ("openAI" or "kimi") dry_运行: Preview mode without moving files (true/false) incremental: Only process new/modified files (true/false) max_chars: Maximum characters to analyze from each PDF custom_topics: Custom topic m应用ings Example 输出
Organized files are named: Title_Author_Journal.pdf Example: Visual_SLAM_What_Are_the_Current_Trends_and_What_to_Expect_Ali_Tourani,_Hriday_Bavle,_Jose_Luis_Sanchez-Lopez,_and_Holger_Voos_Sensors.pdf