活动介绍
file-type

使用Selenium爬取动态网页数据并导入Excel

ZIP文件

下载需积分: 9 | 153KB | 更新于2025-01-03 | 38 浏览量 | 0 下载量 举报 收藏
download 立即下载
在详细介绍之前,我们需要明确几个关键的知识点:selenium的安装与配置、动态网页数据的识别与抓取、模拟点击操作的实现,以及如何将抓取到的数据导入到excel中进行后续的处理和分析。 首先,关于selenium,它是一个用于Web应用程序测试的工具,后来被广泛应用于爬虫领域,尤其是那些依赖JavaScript动态生成内容的网页。Selenium支持多种编程语言,包括Python,这也是本文档所采用的编程语言。 在selenium的使用过程中,一个关键步骤是模拟用户行为,例如点击一个按钮或者链接。对于动态网页,某些数据可能被JavaScript动态加载,这时通过selenium的WebDriver提供的API模拟用户的点击操作,可以触发JavaScript事件,从而获取到动态生成的内容。 在完成数据的爬取后,通常需要将数据存储到一个结构化格式的文件中,便于数据分析和存档。在本资源中,目标是将爬取的数据导入到excel文件中。Python的pandas库可以很容易地实现这一功能,因为它提供了强大的数据处理功能,并且可以轻松地将数据导出到Excel文件中。 在开始编写代码之前,我们必须先安装selenium包,并确保我们有一个与所爬网页兼容的WebDriver(比如ChromeDriver)。在Python环境中,安装selenium可以通过pip工具轻松完成。安装完成后,就可以开始编写爬虫程序了。 我们的爬虫程序大致包含以下几个步骤:启动WebDriver、访问目标网页、定位元素、模拟点击、解析数据、保存数据到excel。在模拟点击过程中,需要特别注意定位那些含有display:none属性的元素,这通常意味着元素在页面加载时是隐藏的,可能需要使用selenium的显式等待(Explicit Wait)或隐式等待(Implicit Wait)来确保页面元素加载完成后再进行操作。 在解析数据时,我们可以利用selenium提供的WebDriverWait类和expected_conditions模块来等待特定元素加载完成,并使用find_element_by_*或者find_elements_by_*方法来获取元素的数据。对于非可见元素,还可以使用execute_script方法执行JavaScript来获取。 最后,将抓取到的数据保存到excel中,需要借助pandas库。首先,将数据存储在DataFrame中,然后使用pandas的to_excel方法将DataFrame导出为Excel文件。 整个过程需要考虑到异常处理,例如网络请求失败、元素定位错误等,并通过try-except结构来捕获这些异常,确保程序的健壮性。 在实际应用中,还需要考虑到遵守目标网站的robots.txt文件,以确保我们的爬虫行为不违反网站的规定,尊重网站的爬虫协议。此外,合理地控制爬取频率,避免给目标网站造成过大压力也是开发者应有的职业道德。 本资源的核心在于展示如何使用selenium进行高级爬虫操作,特别是在动态网页数据爬取方面,同时结合pandas库完成数据的整理与存储,以实现高效的数据获取与管理。"

相关推荐

filetype

这是当前版本的结构图这是当前的结构图lufei@fedora:~/文档/聚核助手2.0$ tree -L 4 . ├── aicr.txt ├── assets │   ├── __init__.py │   └── response.mp3 ├── assistant.log ├── audio_test.py ├── backup_20250715_0859.zip ├── batch_update_entry_points.py ├── certs │   ├── ca-bundle.crt -> /etc/ssl/certs/ca-bundle.crt │   ├── eventbus.crt │   ├── eventbus.key │   └── __init__.py ├── chatgpt_importer.py ├── check_syntax.py ├── cleanup_legacy.py ├── code_metrics.csv ├── config │   ├── config.py │   ├── global_config.yaml │   ├── __init__.py │   ├── __pycache__ │   │   └── __init__.cpython-313.pyc │   └── user_config.yaml ├── config.py ├── config.yaml ├── conversations.json ├── core │   ├── aicore │   │   ├── action_manager.py │   │   ├── actions │   │   │   ├── action_dispatcher.py │   │   │   ├── action_handlers.py │   │   │   ├── actions.yaml │   │   │   ├── __init__.py │   │   │   └── __pycache__ │   │   ├── aicore.py │   │   ├── circuit_breaker.py │   │   ├── command_router.py │   │   ├── context_manager.py │   │   ├── health_monitor.py │   │   ├── __init__.py │   │   ├── manifest.json │   │   ├── memory │   │   │   ├── __init__.py │   │   │   ├── memory_data.json │   │   │   ├── memory_engine.py │   │   │   ├── memory.json │   │   │   ├── memory_log.txt │   │   │   ├── memory_manager.py │   │   │   └── __pycache__ │   │   ├── model_engine.py │   │   └── __pycache__ │   │   ├── action_manager.cpython-313.pyc │   │   ├── aicore.cpython-313.pyc │   │   ├── circuit_breaker.cpython-313.pyc │   │   ├── command_router.cpython-313.pyc │   │   ├── context_manager.cpython-313.pyc │   │   ├── health_monitor.cpython-313.pyc │   │   ├── __init__.cpython-313.pyc │   │   └── model_engine.cpython-313.pyc │   ├── core2_0 │   │   ├── action_dispatcher.py │   │   ├── aicore -> ../../core/aicore │   │   ├── certs │   │   │   └── __init__.py │   │   ├── cli.py │   │   ├── config_manager.py │   │   ├── config.py │   │   ├── error_logger.py │   │   ├── event_bus.py │   │   ├── framework │   │   │   └── __init__.py │   │   ├── __init__.py │   │   ├── jujue_module_generator.py │   │   ├── jumo_core.py │   │   ├── logger.py │   │   ├── module_loader.py │   │   ├── module_manager.py │   │   ├── module_watcher.py │   │   ├── __pycache__ │   │   │   ├── event_bus.cpython-313.pyc │   │   │   ├── __init__.cpython-313.pyc │   │   │   ├── reply_dispatcher.cpython-313.pyc │   │   │   └── trace_logger.cpython-313.pyc │   │   ├── query_handler.py │   │   ├── register_action.py │   │   ├── reply_dispatcher.py │   │   ├── sanhuatongyu │   │   │   ├── config.py │   │   │   ├── context.py │   │   │   ├── emergency_cli.py │   │   │   ├── entry_dispatcher.py │   │   │   ├── events │   │   │   ├── events.py │   │   │   ├── __init__.py │   │   │   ├── logger.py │   │   │   ├── master.py │   │   │   ├── metrics.py │   │   │   ├── module │   │   │   ├── monitoring │   │   │   ├── __pycache__ │   │   │   ├── run_sanhuatongyu.py │   │   │   ├── security │   │   │   ├── system_module.py │   │   │   ├── tests │   │   │   └── utils.py │   │   ├── security_manager.py │   │   ├── self_heal │   │   │   ├── __init__.py │   │   │   ├── log_analyzer.py │   │   │   ├── rollback_manager.py │   │   │   └── self_healing_scheduler.py │   │   ├── trace_logger.py │   │   └── utils.py │   ├── __init__.py │   ├── __pycache__ │   │   └── __init__.cpython-313.pyc │   └── system │   ├── __init__.py │   ├── __pycache__ │   │   ├── __init__.cpython-313.pyc │   │   ├── system_control.cpython-313.pyc │   │   └── system_sense.cpython-313.pyc │   ├── system_control.py │   └── system_sense.py ├── create_memory_module.py ├── data │   ├── __init__.py │   ├── logbook.jsonl │   ├── memory_data.json │   └── memory_log.txt ├── default_config.yaml ├── dependencies │   ├── audio_env │   │   ├── bin │   │   │   ├── activate │   │   │   ├── activate.csh │   │   │   ├── activate.fish │   │   │   ├── Activate.ps1 │   │   │   ├── autopep8 │   │   │   ├── bandit │   │   │   ├── bandit-baseline │   │   │   ├── bandit-config-generator │   │   │   ├── distro │   │   │   ├── edge-playback │   │   │   ├── edge-tts │   │   │   ├── f2py │   │   │   ├── find-corrupt-whisper-files.py │   │   │   ├── flake8 │   │   │   ├── huggingface-cli │   │   │   ├── __init__.py │   │   │   ├── isympy │   │   │   ├── jsonschema │   │   │   ├── markdown-it │   │   │   ├── normalizer │   │   │   ├── numpy-config │   │   │   ├── pbr │   │   │   ├── pip │   │   │   ├── pip3 │   │   │   ├── pip3.13 │   │   │   ├── proton │   │   │   ├── proton-viewer │   │   │   ├── pycodestyle │   │   │   ├── pyflakes │   │   │   ├── pygmentize │   │   │   ├── pylupdate6 │   │   │   ├── python -> /usr/bin/python │   │   │   ├── python3 -> python │   │   │   ├── python3.13 -> python │   │   │   ├── pyuic6 │   │   │   ├── radon │   │   │   ├── rrd2whisper.py │   │   │   ├── srt │   │   │   ├── srt-deduplicate │   │   │   ├── srt-fixed-timeshift │   │   │   ├── srt-linear-timeshift │   │   │   ├── srt-lines-matching │   │   │   ├── srt-mux │   │   │   ├── srt-normalise │   │   │   ├── srt-play │   │   │   ├── srt-process │   │   │   ├── tabulate │   │   │   ├── tiny-agents │   │   │   ├── torchfrtrace │   │   │   ├── torchrun │   │   │   ├── tqdm │   │   │   ├── transformers │   │   │   ├── transformers-cli │   │   │   ├── update-storage-times.py │   │   │   ├── watchmedo │   │   │   ├── whisper-auto-resize.py │   │   │   ├── whisper-auto-update.py │   │   │   ├── whisper-create.py │   │   │   ├── whisper-diff.py │   │   │   ├── whisper-dump.py │   │   │   ├── whisper-fetch.py │   │   │   ├── whisper-fill.py │   │   │   ├── whisper-info.py │   │   │   ├── whisper-merge.py │   │   │   ├── whisper-resize.py │   │   │   ├── whisper-set-aggregation-method.py │   │   │   ├── whisper-set-xfilesfactor.py │   │   │   └── whisper-update.py │   │   ├── include │   │   │   ├── __init__.py │   │   │   └── python3.13 │   │   ├── __init__.py │   │   ├── lib │   │   │   ├── __init__.py │   │   │   └── python3.13 │   │   ├── lib64 -> lib │   │   ├── pyvenv.cfg │   │   └── share │   │   ├── __init__.py │   │   └── man │   ├── __init__.py │   └── requirements.txt ├── dingtalk_install.sh ├── docs │   └── __init__.py ├── entry │   ├── add_entry_func.py │   ├── cli_entry │   │   ├── cli_entry.py │   │   ├── __init__.py │   │   ├── manifest.json │   │   ├── module.py │   │   └── __pycache__ │   │   ├── cli_entry.cpython-313.pyc │   │   └── __init__.cpython-313.pyc │   ├── gui_entry │   │   ├── gui_main.py │   │   ├── __init__.py │   │   ├── manifest.json │   │   └── module.py │   ├── __init__.py │   ├── __pycache__ │   │   └── __init__.cpython-313.pyc │   ├── register_and_run_entries.py │   ├── voice_entry │   │   ├── __init__.py │   │   ├── manifest.json │   │   ├── module.py │   │   └── voice_entry.py │   └── voice_input │   ├── 2 │   │   └── __init__.py │   ├── __init__.py │   ├── manifest.json │   ├── manifest.json.bak │   ├── module.py │   └── voice_input.py ├── external │   ├── cpp_example │   │   └── __init__.py │   ├── go_example │   │   └── __init__.py │   ├── __init__.py │   └── rust_example │   └── __init__.py ├── fix_ai_config.py ├── fix_all_issues.py ├── fix_and_run.sh ├── fix_cli_entry_path_and_dispatcher.py ├── fix_entry_import_paths.py ├── fix_errors.sh ├── fix_imports.py ├── fix_log_calls.py ├── fix_logger_calls.py ├── fix_logger_extra_parens.py ├── fix_logger_extra.py ├── fix_log_path.py ├── fix_package_exports.sh ├── fix_percent_format.py ├── fix_relative_imports.py ├── fix_systemmonitor.py ├── gui │   ├── aicore_gui.py │   ├── __init__.py │   ├── main_gui.py │   ├── main_gui.py.bak │   ├── utils │   │   ├── __init__.py │   │   ├── system_monitor.py │   │   ├── typing_effect.py │   │   └── voice_queue.py │   └── widgets │   ├── background_manager.py │   ├── chat_box.py │   ├── __init__.py │   ├── input_bar.py │   ├── menu_bar.py │   ├── status_panel.py │   └── voice_mode_overlay.py ├── health_checker.py ├── health_checker.py.bak ├── health_report.md ├── init_packages.py ├── init_project.sh ├── __init__.py ├── install_missing_dependencies.py ├── jindouyun_particles.py ├── juhe-main.py ├── juhe-main.py.bak ├── juhe_system.log ├── license ├── logbook.jsonl ├── logs │   ├── audit_20250719.log │   ├── audit_20250720.log │   ├── audit_20250721.log │   ├── cli_20250719_183927.log │   ├── cli_20250719_191337.log │   ├── cli_20250719.log │   ├── cli_20250720.log │   ├── cli_20250721.log │   ├── code_inserter │   │   ├── code_inserter.log │   │   └── __init__.py │   ├── code_reader │   │   ├── code_reader.log │   │   └── __init__.py │   ├── code_reviewer.log │   ├── format_manager │   │   └── format_manager.log │   ├── __init__.py │   ├── logbook │   │   ├── audit.log │   │   └── logbook.jsonl │   └── voice_input │   ├── __init__.py │   └── voice_input.log ├── main_controller.py ├── memory_data.json ├── memory.pkl ├── memory_retrieval.py ├── migrate_log.txt ├── migrate_structure.py ├── models.txt ├── module_loader.py ├── modules │   ├── audio_capture │   │   ├── 1 │   │   │   ├── __init__.py │   │   │   └── manifest.json │   │   ├── capture.py │   │   ├── __init__.py │   │   ├── manifest.json │   │   ├── manifest.json.bak │   │   └── module.py │   ├── audio_consumer │   │   ├── 1 │   │   │   ├── __init__.py │   │   │   └── manifest.json │   │   ├── audio_consumer.py │   │   ├── __init__.py │   │   ├── manifest.json │   │   ├── manifest.json.bak │   │   └── module.py │   ├── cli_entry │   │   ├── cli_main.py │   │   ├── __init__.py │   │   ├── manifest.json │   │   └── module.py │   ├── code_executor │   │   ├── 1 │   │   │   ├── __init__.py │   │   │   └── manifest.json │   │   ├── code_executor.py │   │   ├── __init__.py │   │   ├── manifest.json │   │   ├── manifest.json.bak │   │   ├── module.py │   │   └── __pycache__ │   │   ├── code_executor.cpython-313.pyc │   │   └── __init__.cpython-313.pyc │   ├── code_inserter │   │   ├── 1 │   │   │   ├── __init__.py │   │   │   └── manifest.json │   │   ├── code_inserter.py │   │   ├── __init__.py │   │   ├── manifest.json │   │   ├── manifest.json.bak │   │   ├── module.py │   │   └── __pycache__ │   │   ├── code_inserter.cpython-313.pyc │   │   └── __init__.cpython-313.pyc │   ├── code_reader │   │   ├── 1 │   │   │   ├── __init__.py │   │   │   └── manifest.json │   │   ├── code_reader.py │   │   ├── __init__.py │   │   ├── manifest.json │   │   ├── manifest.json.bak │   │   ├── module.py │   │   └── __pycache__ │   │   ├── code_reader.cpython-313.pyc │   │   └── __init__.cpython-313.pyc │   ├── code_reviewer │   │   ├── 1 │   │   │   ├── __init__.py │   │   │   └── manifest.json │   │   ├── code_reviewer.py │   │   ├── __init__.py │   │   ├── manifest.json │   │   ├── manifest.json.bak │   │   ├── module.py │   │   └── __pycache__ │   │   ├── code_reviewer.cpython-313.pyc │   │   └── __init__.cpython-313.pyc │   ├── format_manager │   │   ├── 1 │   │   │   ├── __init__.py │   │   │   └── manifest.json │   │   ├── format_manager.py │   │   ├── __init__.py │   │   ├── manifest.json │   │   ├── manifest.json.bak │   │   ├── module.py │   │   └── __pycache__ │   │   ├── format_manager.cpython-313.pyc │   │   └── __init__.cpython-313.pyc │   ├── gui_entry │   │   ├── gui_main.py │   │   ├── __init__.py │   │   ├── manifest.json │   │   └── module.py │   ├── hello_module │   │   ├── 1 │   │   │   ├── __init__.py │   │   │   └── manifest.json │   │   ├── hello_module.py │   │   ├── __init__.py │   │   ├── manifest.json │   │   ├── manifest.json.bak │   │   └── module.py │   ├── __init__.py │   ├── ju_wu │   │   ├── action_mapper.py │   │   ├── __init__.py │   │   ├── intent_router.py │   │   ├── juwu.py │   │   ├── manifest.json │   │   ├── rules │   │   │   ├── __init__.py │   │   │   ├── intent_rules.json │   │   │   └── manifest.json │   │   ├── rule_trainer_gui.py │   │   ├── rule_trainer_interactive.py │   │   └── rule_trainer_widget.py │   ├── juzi │   │   ├── icons │   │   │   ├── file_000000007978620ab9d2f348a2d62a7f-9db60022-3243-4e66-acda-80f38ba5248b.png │   │   │   ├── __init__.py │   │   │   └── manifest.json │   │   ├── __init__.py │   │   ├── juzi_engine.py │   │   ├── juzi.py │   │   ├── juzi.xml │   │   └── manifest.json │   ├── language_bridge │   │   ├── 1 │   │   │   ├── __init__.py │   │   │   └── manifest.json │   │   ├── __init__.py │   │   ├── language_bridge.py │   │   ├── manifest.json │   │   ├── manifest.json.bak │   │   └── module.py │   ├── logbook │   │   ├── 1 │   │   │   ├── __init__.py │   │   │   └── manifest.json │   │   ├── __init__.py │   │   ├── logbook_manager.py │   │   ├── logbook.py │   │   ├── manifest.json │   │   ├── manifest.json.bak │   │   ├── module.py │   │   └── __pycache__ │   │   ├── __init__.cpython-313.pyc │   │   └── logbook.cpython-313.pyc │   ├── model_engine │   │   ├── 1 │   │   │   ├── __init__.py │   │   │   └── manifest.json │   │   ├── __init__.py │   │   ├── manifest.json │   │   ├── manifest.json.bak │   │   ├── model_engine.py │   │   ├── module.py │   │   └── __pycache__ │   │   ├── __init__.cpython-313.pyc │   │   ├── model_engine.cpython-313.pyc │   │   └── module.cpython-313.pyc │   ├── music_manager │   │   ├── 1 │   │   │   ├── __init__.py │   │   │   └── manifest.json │   │   ├── __init__.py │   │   ├── manifest.json │   │   ├── manifest.json.bak │   │   ├── module.py │   │   ├── music_manager.py │   │   └── __pycache__ │   │   ├── __init__.cpython-313.pyc │   │   ├── module.cpython-313.pyc │   │   └── music_manager.cpython-313.pyc │   ├── __pycache__ │   │   └── __init__.cpython-313.pyc │   ├── reply_dispatcher │   │   ├── dispatcher.py │   │   ├── __init__.py │   │   ├── manifest.json │   │   └── register_actions.py │   ├── self_learning_module │   │   ├── 1 │   │   │   ├── __init__.py │   │   │   └── manifest.json │   │   ├── __init__.py │   │   ├── manifest.json │   │   ├── manifest.json.bak │   │   ├── module.py │   │   └── self_learning_module.py │   ├── smart_demo_module │   │   ├── 1 │   │   │   ├── __init__.py │   │   │   └── manifest.json │   │   ├── __init__.py │   │   ├── manifest.json │   │   ├── manifest.json.bak │   │   ├── module.py │   │   └── smart_demo_module.py │   ├── speech_manager │   │   ├── 1 │   │   │   ├── __init__.py │   │   │   └── manifest.json │   │   ├── __init__.py │   │   ├── manifest.json │   │   ├── manifest.json.bak │   │   ├── module.py │   │   ├── __pycache__ │   │   │   ├── __init__.cpython-313.pyc │   │   │   └── module.cpython-313.pyc │   │   └── speech_manager.py │   ├── stt_module │   │   ├── 1 │   │   │   ├── __init__.py │   │   │   └── manifest.json │   │   ├── __init__.py │   │   ├── manifest.json │   │   ├── manifest.json.bak │   │   ├── module.py │   │   └── stt_module.py │   ├── system_control │   │   ├── 1 │   │   │   ├── __init__.py │   │   │   └── manifest.json │   │   ├── __init__.py │   │   ├── manifest.json │   │   ├── manifest.json.bak │   │   ├── module.py │   │   ├── __pycache__ │   │   │   ├── __init__.cpython-313.pyc │   │   │   └── module.cpython-313.pyc │   │   └── system_control.py │   ├── system_monitor │   │   ├── 1 │   │   │   ├── __init__.py │   │   │   └── manifest.json │   │   ├── __init__.py │   │   ├── manifest.json │   │   ├── manifest.json.bak │   │   ├── module.py │   │   ├── __pycache__ │   │   │   ├── __init__.cpython-313.pyc │   │   │   ├── module.cpython-313.pyc │   │   │   └── system_monitor.cpython-313.pyc │   │   └── system_monitor.py │   ├── test_module │   │   ├── 1 │   │   │   ├── __init__.py │   │   │   └── manifest.json │   │   ├── __init__.py │   │   ├── manifest.json │   │   ├── manifest.json.bak │   │   ├── module.py │   │   └── test_module.py │   ├── voice_entry │   │   ├── __init__.py │   │   ├── manifest.json │   │   ├── module.py │   │   └── voice_entry.py │   ├── voice_input │   │   ├── 2 │   │   │   ├── __init__.py │   │   │   └── manifest.json │   │   ├── __init__.py │   │   ├── manifest.json │   │   ├── manifest.json.bak │   │   ├── module.py │   │   └── voice_input.py │   └── wake_word_detector │   ├── 1 │   │   ├── __init__.py │   │   └── manifest.json │   ├── download_whisper_model.py │   ├── __init__.py │   ├── manifest.json │   ├── manifest.json.bak │   ├── module.py │   └── wake_word_detector.py ├── module_standardizer.py ├── mysterious_entry_tool.py ├── ollama_bin │   ├── __init__.py │   └── ollama ├── ollama_data │   ├── history │   ├── id_ed25519 │   ├── id_ed25519.pub │   └── __init__.py ├── ollama_models │   ├── blobs │   │   ├── __init__.py │   │   ├── sha256-3f8eb4da87fa7a3c9da615036b0dc418d31fef2a30b115ff33562588b32c691d │   │   ├── sha256-4fa551d4f938f68b8c1e6afa9d28befb70e3f33f75d0753248d530364aeea40f │   │   ├── sha256-577073ffcc6ce95b9981eacc77d1039568639e5638e83044994560d9ef82ce1b │   │   ├── sha256-6a0746a1ec1aef3e7ec53868f220ff6e389f6f8ef87a01d77c96807de94ca2aa │   │   └── sha256-8ab4849b038cf0abc5b1c9b8ee1443dca6b93a045c2272180d985126eb40bf6f │   ├── __init__.py │   └── manifests │   ├── __init__.py │   └── registry.ollama.ai │   ├── __init__.py │   └── library ├── README.md ├── recordings │   └── __init__.py ├── register_entries.sh ├── replace_imports.py ├── replace_logging.py ├── restructure_dirs.sh ├── rollback_snapshots │   ├── backup │   │   ├── backup_20250629_215816_94cd3d │   │   │   ├── code_executor.py │   │   │   ├── code_inserter.py │   │   │   ├── code_reader.py │   │   │   ├── code_reviewer.py │   │   │   ├── format_manager.py │   │   │   ├── hello_module.py │   │   │   ├── __init__.py │   │   │   ├── logbook.py │   │   │   ├── model_engine.py │   │   │   ├── music_manager.py │   │   │   ├── speech_manager.py │   │   │   ├── system_control.py │   │   │   └── system_monitor.py │   │   └── __init__.py │   ├── __init__.py │   ├── rollback_history.json │   ├── snapshot_20250629_215118_795f59e1 │   │   ├── code_executor.py │   │   ├── code_inserter.py │   │   ├── code_reader.py │   │   ├── code_reviewer.py │   │   ├── format_manager.py │   │   ├── hello_module.py │   │   ├── __init__.py │   │   ├── logbook.py │   │   ├── model_engine.py │   │   ├── music_manager.py │   │   ├── speech_manager.py │   │   ├── system_control.py │   │   └── system_monitor.py │   ├── snapshot_20250629_215407_65d62c0e │   │   ├── code_executor.py │   │   ├── code_inserter.py │   │   ├── code_reader.py │   │   ├── code_reviewer.py │   │   ├── format_manager.py │   │   ├── hello_module.py │   │   ├── __init__.py │   │   ├── logbook.py │   │   ├── model_engine.py │   │   ├── music_manager.py │   │   ├── speech_manager.py │   │   ├── system_control.py │   │   └── system_monitor.py │   └── snapshot_20250629_215816_c3d93551 │   ├── code_executor.py │   ├── code_inserter.py │   ├── code_reader.py │   ├── code_reviewer.py │   ├── format_manager.py │   ├── hello_module.py │   ├── __init__.py │   ├── logbook.py │   ├── model_engine.py │   ├── music_manager.py │   ├── speech_manager.py │   ├── system_control.py │   └── system_monitor.py ├── rule_trainer.py ├── run_all_entries.py ├── runtime │   ├── __init__.py │   ├── logs │   │   └── __init__.py │   ├── recordings │   │   └── __init__.py │   └── temp │   └── __init__.py ├── sanhua_self_healer.py ├── scaffold │   ├── fix_all_imports.py │   ├── health_checker.py │   ├── __init__.py │   └── standardize_modules.py ├── scan_old_imports.py ├── start_ollama.sh ├── startup_fix.py ├── system.log ├── test_mic.py ├── tests │   ├── __init__.py │   ├── test_aicore.py │   ├── test_entry_dispatcher.py │   └── test_modules_loading.py ├── test.wav ├── third_party │   ├── __init__.py │   └── ollama │   └── __init__.py ├── tools │   ├── cert_fix_tool.py │   ├── config_validator.py │   ├── import_checker.py │   └── path_dependency_checker.py ├── trace_memory_summary_calls.py ├── update_entry_points.py ├── utils │   └── __init__.py └── venv ├── bin │   ├── activate │   ├── activate.csh │   ├── activate.fish │   ├── Activate.ps1 │   ├── bandit │   ├── bandit-baseline │   ├── bandit-config-generator │   ├── flake8 │   ├── futurize │   ├── markdown-it │   ├── pasteurize │   ├── pbr │   ├── pip │   ├── pip3 │   ├── pip3.11 │   ├── pycodestyle │   ├── pyflakes │   ├── pygmentize │   ├── python -> python3.11 │   ├── python3 -> python3.11 │   ├── python3.11 -> /usr/bin/python3.11 │   ├── radon │   └── watchmedo ├── include │   └── python3.11 ├── lib │   └── python3.11 │   └── site-packages ├── lib64 -> lib ├── pyvenv.cfg └── share └── man └── man1 159 directories, 624 files lufei@fedora:~/文档/聚核助手2.0$