i18n: translate all Chinese comments, docstrings, and logger messages to English

Comprehensive translation of Chinese text to English across the entire codebase:

- api/: FastAPI server documentation and logger messages
- cache/: Cache abstraction layer comments and docstrings
- database/: Database models and MongoDB store documentation
- media_platform/: All platform crawlers (Bilibili, Douyin, Kuaishou, Tieba, Weibo, Xiaohongshu, Zhihu)
- model/: Data model documentation
- proxy/: Proxy pool and provider documentation
- store/: Data storage layer comments
- tools/: Utility functions and browser automation
- test/: Test file documentation

Preserved: Chinese disclaimer header (lines 10-18) for legal compliance

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
程序员阿江(Relakkes)
2025-12-26 23:27:19 +08:00
parent 1544d13dd5
commit 157ddfb21b
93 changed files with 1971 additions and 1955 deletions

View File

@@ -21,7 +21,7 @@
# -*- coding: utf-8 -*-
# @Author : persist1@126.com
# @Time : 2025/9/5 19:34
# @Desc : B站存储实现类
# @Desc : Bilibili storage implementation class
import asyncio
import csv
import json
@@ -310,16 +310,16 @@ class BiliSqliteStoreImplement(BiliDbStoreImplement):
class BiliMongoStoreImplement(AbstractStore):
"""B站MongoDB存储实现"""
"""Bilibili MongoDB storage implementation"""
def __init__(self):
self.mongo_store = MongoDBStoreBase(collection_prefix="bilibili")
async def store_content(self, content_item: Dict):
"""
存储视频内容到MongoDB
Store video content to MongoDB
Args:
content_item: 视频内容数据
content_item: Video content data
"""
video_id = content_item.get("video_id")
if not video_id:
@@ -334,9 +334,9 @@ class BiliMongoStoreImplement(AbstractStore):
async def store_comment(self, comment_item: Dict):
"""
存储评论到MongoDB
Store comment to MongoDB
Args:
comment_item: 评论数据
comment_item: Comment data
"""
comment_id = comment_item.get("comment_id")
if not comment_id:
@@ -351,9 +351,9 @@ class BiliMongoStoreImplement(AbstractStore):
async def store_creator(self, creator_item: Dict):
"""
存储UP主信息到MongoDB
Store UP master information to MongoDB
Args:
creator_item: UP主数据
creator_item: UP master data
"""
user_id = creator_item.get("user_id")
if not user_id:
@@ -368,7 +368,7 @@ class BiliMongoStoreImplement(AbstractStore):
class BiliExcelStoreImplement:
"""B站Excel存储实现 - 全局单例"""
"""Bilibili Excel storage implementation - Global singleton"""
def __new__(cls, *args, **kwargs):
from store.excel_store_base import ExcelStoreBase

View File

@@ -20,7 +20,7 @@
# -*- coding: utf-8 -*-
# @Author : helloteemo
# @Time : 2024/7/12 20:01
# @Desc : bilibili 媒体保存
# @Desc : Bilibili media storage
import pathlib
from typing import Dict