爬虫实现,修改class转样式,前端渲染

This commit is contained in:
2025-11-21 16:49:37 +08:00
parent 7eab82c6af
commit a492b68fa2
11 changed files with 406 additions and 45 deletions

View File

@@ -1,8 +1,8 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
新华网搜索爬虫命令行工具
用法: python RmrbSearch.py --key "关键词" --total 10 --type 0
新华网特别推荐爬虫命令行工具
用法: python XhwCommend.py --output "输出文件路径"
"""
import argparse
@@ -20,7 +20,7 @@ from loguru import logger
def main():
"""主函数"""
parser = argparse.ArgumentParser(
description='新华网新闻搜索工具',
description='新华网特别推荐爬虫工具',
formatter_class=argparse.RawDescriptionHelpFormatter,
epilog="""
"""