Files
douyin_guaji-main/fudai_detail_modules/README.md
T
Your Name c67f22f76f feat: Refactor and reorganize project structure with new modules and files
- Deleted obsolete files including test scripts and configuration files to streamline the project.
- Introduced new modules for handling Douyin functionalities, including core operations, logging, and GUI components.
- Updated import paths to reflect the new module structure, enhancing code organization and maintainability.
- Added configuration files and documentation to support the new structure and improve user guidance.
2025-12-28 14:16:40 +08:00

48 lines
1.3 KiB
Markdown

# 福袋详情模块目录
本目录包含 `douyin_fudai_detail.py` 的模块化子模块。
## 文件结构
- `fudai_detail_room_title.py` - 直播间标题处理模块
- `fudai_detail_operations.py` - 福袋详情页操作模块(打开/关闭)
- `fudai_detail_coupon_detection.py` - 优惠券弹窗检测模块
- `fudai_detail_reader.py` - 福袋详情读取模块
- `fudai_detail_validator.py` - 数据验证模块
- `fudai_detail_utils.py` - 工具函数模块
- `__init__.py` - 包初始化文件
## 使用方式
所有功能通过主模块 `douyin_fudai_detail` 导出,使用方式保持不变:
```python
import douyin_fudai_detail
# 使用导出的函数
douyin_fudai_detail.close_fudai_detail(analyser)
douyin_fudai_detail.read_fudai_detail_once(analyser)
# ... 等等
```
## 模块说明
### fudai_detail_room_title.py
处理直播间标题的OCR识别、噪音过滤、规范化等功能。
### fudai_detail_operations.py
处理福袋详情页的打开和关闭操作。
### fudai_detail_coupon_detection.py
检测当前弹窗是否为优惠券弹窗,而非真正的福袋详情页。
### fudai_detail_reader.py
执行福袋详情的OCR识别和读取,包括单次读取和重试读取。
### fudai_detail_validator.py
验证福袋详情数据的合理性,检测识别错误。
### fudai_detail_utils.py
提供通用的工具函数。