mirror of
https://github.com/NanmiCoder/MediaCrawler.git
synced 2026-05-25 20:17:30 +08:00
docs: translate comments and metadata to English
Update Chinese comments, variable descriptions, and metadata across multiple configuration and core files to English. This improves codebase accessibility for international developers. Additionally, removed the sponsorship section from README files.
This commit is contained in:
@@ -83,7 +83,7 @@ async def update_weibo_note(note_item: Dict):
|
||||
content_text = mblog.get("text")
|
||||
clean_text = re.sub(r"<.*?>", "", content_text)
|
||||
save_content_item = {
|
||||
# 微博信息
|
||||
# Weibo information
|
||||
"note_id": note_id,
|
||||
"content": clean_text,
|
||||
"create_time": utils.rfc2822_to_timestamp(mblog.get("created_at")),
|
||||
@@ -95,7 +95,7 @@ async def update_weibo_note(note_item: Dict):
|
||||
"note_url": f"https://m.weibo.cn/detail/{note_id}",
|
||||
"ip_location": mblog.get("region_name", "").replace("发布于 ", ""),
|
||||
|
||||
# 用户信息
|
||||
# User information
|
||||
"user_id": str(user_info.get("id")),
|
||||
"nickname": user_info.get("screen_name", ""),
|
||||
"gender": user_info.get("gender", ""),
|
||||
@@ -151,7 +151,7 @@ async def update_weibo_note_comment(note_id: str, comment_item: Dict):
|
||||
"ip_location": comment_item.get("source", "").replace("来自", ""),
|
||||
"parent_comment_id": comment_item.get("rootid", ""),
|
||||
|
||||
# 用户信息
|
||||
# User information
|
||||
"user_id": str(user_info.get("id")),
|
||||
"nickname": user_info.get("screen_name", ""),
|
||||
"gender": user_info.get("gender", ""),
|
||||
|
||||
Reference in New Issue
Block a user