From 191dd5998ddfe57124817aa984a11622b34e53e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B9=B0=E5=AE=9A=E4=B8=8D=E7=A6=BB=E6=89=8B?= <12640033+msz-006@user.noreply.gitee.com> Date: Mon, 14 Jul 2025 03:50:32 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E6=9B=B4=E6=96=B0README=E6=96=87?= =?UTF-8?q?=E6=A1=A3=E4=BB=A5=E6=94=AF=E6=8C=81SQLite=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E5=BA=93=E5=AD=98=E5=82=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 更新 README.md 文件,在数据保存部分新增SQLite数据库支持说明,强调其轻量级特性和个人使用优势 - 更新 README_en.md 文件,在数据存储部分添加SQLite数据库介绍,提供英文版本的使用指导和示例 - 更新 README_es.md 文件,在数据存储部分增加SQLite数据库说明,提供西班牙语版本的配置和使用方法 --- README.md | 12 ++++++++++++ README_en.md | 12 ++++++++++++ README_es.md | 12 ++++++++++++ 3 files changed, 36 insertions(+) diff --git a/README.md b/README.md index a893aa7..9971274 100644 --- a/README.md +++ b/README.md @@ -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) diff --git a/README_en.md b/README_en.md index acc8f42..ee871c9 100644 --- a/README_en.md +++ b/README_en.md @@ -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) diff --git a/README_es.md b/README_es.md index e251dca..4728f49 100644 --- a/README_es.md +++ b/README_es.md @@ -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)