feat: 完善JavaScript解析器功能

- 优化JsScriptLoader,支持JAR包内和文件系统的自动资源文件发现
- 移除预定义文件列表,完全依赖自动检测
- 添加getNoRedirect方法支持重定向处理
- 添加sendMultipartForm方法支持文件上传
- 添加代理配置支持
- 修复JSON解析的压缩处理问题
- 添加默认请求头支持(Accept-Encoding、User-Agent、Accept-Language)
- 更新文档,修正导出方式说明
- 优化README.md结构,删除不符合模块定位的内容
- 升级parser版本到10.2.1
This commit is contained in:
q
2025-10-22 17:33:50 +08:00
parent 7b364a0f90
commit 064efdf3f3
25 changed files with 644 additions and 271 deletions

View File

@@ -15,7 +15,7 @@
#### 1. 新增类
##### CustomParserConfig.java
- **位置:** `cn.qaiu.parser.CustomParserConfig`
- **位置:** `cn.qaiu.parser.custom.CustomParserConfig`
- **功能:** 自定义解析器配置类
- **主要字段:**
- `type`: 解析器类型标识(唯一,必填)
@@ -30,7 +30,7 @@
- 验证必填字段是否为空
##### CustomParserRegistry.java
- **位置:** `cn.qaiu.parser.CustomParserRegistry`
- **位置:** `cn.qaiu.parser.custom.CustomParserRegistry`
- **功能:** 自定义解析器注册中心
- **主要方法:**
- `register(CustomParserConfig)`: 注册解析器
@@ -71,7 +71,7 @@
#### 3. 测试类
##### CustomParserTest.java
- **位置:** `cn.qaiu.parser.CustomParserTest`
- **位置:** `cn.qaiu.parser.custom.CustomParserTest`
- **测试覆盖:**
- ✅ 注册自定义解析器
- ✅ 重复注册检测