docs: 更新README文档以支持SQLite数据库存储

- 更新 README.md 文件,在数据保存部分新增SQLite数据库支持说明,强调其轻量级特性和个人使用优势
- 更新 README_en.md 文件,在数据存储部分添加SQLite数据库介绍,提供英文版本的使用指导和示例
- 更新 README_es.md 文件,在数据存储部分增加SQLite数据库说明,提供西班牙语版本的配置和使用方法
This commit is contained in:
买定不离手
2025-07-14 03:50:32 +08:00
parent c6b96b7e28
commit 191dd5998d
3 changed files with 36 additions and 0 deletions

View File

@@ -199,11 +199,23 @@ python main.py --help
支持多种数据存储方式:
- **SQLite 数据库**:轻量级数据库,无需服务器,适合个人使用(推荐)
- 参数:`--save_data_option sqlite`
- 自动创建数据库文件
- **MySQL 数据库**:支持关系型数据库 MySQL 中保存(需要提前创建数据库)
- 执行 `python db.py` 初始化数据库表结构(只在首次执行)
- **CSV 文件**:支持保存到 CSV 中(`data/` 目录下)
- **JSON 文件**:支持保存到 JSON 中(`data/` 目录下)
### 使用示例:
```shell
# 使用 SQLite推荐个人用户使用
uv run main.py --platform xhs --lt qrcode --type search --save_data_option sqlite
# 使用 MySQL
uv run main.py --platform xhs --lt qrcode --type search --save_data_option db
```
---
[🚀 MediaCrawlerPro 重磅发布 🚀!更多的功能,更好的架构设计!](https://github.com/MediaCrawlerPro)

View File

@@ -195,11 +195,23 @@ python main.py --help
Supports multiple data storage methods:
- **SQLite Database**: Lightweight database without server, ideal for personal use (recommended)
- Parameter: `--save_data_option sqlite`
- Database file created automatically
- **MySQL Database**: Supports saving to relational database MySQL (need to create database in advance)
- Execute `python db.py` to initialize database table structure (only execute on first run)
- **CSV Files**: Supports saving to CSV (under `data/` directory)
- **JSON Files**: Supports saving to JSON (under `data/` directory)
### Usage Examples:
```shell
# Use SQLite (recommended for personal users)
uv run main.py --platform xhs --lt qrcode --type search --save_data_option sqlite
# Use MySQL
uv run main.py --platform xhs --lt qrcode --type search --save_data_option db
```
---
[🚀 MediaCrawlerPro Major Release 🚀! More features, better architectural design!](https://github.com/MediaCrawlerPro)

View File

@@ -195,11 +195,23 @@ python main.py --help
Soporta múltiples métodos de almacenamiento de datos:
- **Base de Datos SQLite**: Base de datos ligera sin servidor, ideal para uso personal (recomendado)
- Parámetro: `--save_data_option sqlite`
- Se crea automáticamente el archivo de base de datos
- **Base de Datos MySQL**: Soporta guardar en base de datos relacional MySQL (necesita crear base de datos con anticipación)
- Ejecute `python db.py` para inicializar la estructura de tablas de la base de datos (solo ejecutar en la primera ejecución)
- **Archivos CSV**: Soporta guardar en CSV (bajo el directorio `data/`)
- **Archivos JSON**: Soporta guardar en JSON (bajo el directorio `data/`)
### Ejemplos de Uso:
```shell
# Usar SQLite (recomendado para usuarios personales)
uv run main.py --platform xhs --lt qrcode --type search --save_data_option sqlite
# Usar MySQL
uv run main.py --platform xhs --lt qrcode --type search --save_data_option db
```
---
[🚀 ¡Lanzamiento Mayor de MediaCrawlerPro 🚀! ¡Más características, mejor diseño arquitectónico!](https://github.com/MediaCrawlerPro)