mirror of
https://gitee.com/houhuan/TrendRadar.git
synced 2025-12-21 16:17:17 +08:00
48 lines
1.2 KiB
Python
48 lines
1.2 KiB
Python
# coding=utf-8
|
|
"""
|
|
核心模块 - 配置管理和核心工具
|
|
"""
|
|
|
|
from trendradar.core.config import (
|
|
parse_multi_account_config,
|
|
validate_paired_configs,
|
|
limit_accounts,
|
|
get_account_at_index,
|
|
)
|
|
from trendradar.core.loader import load_config
|
|
from trendradar.core.frequency import load_frequency_words, matches_word_groups
|
|
from trendradar.core.data import (
|
|
save_titles_to_file,
|
|
read_all_today_titles_from_storage,
|
|
read_all_today_titles,
|
|
detect_latest_new_titles_from_storage,
|
|
detect_latest_new_titles,
|
|
is_first_crawl_today,
|
|
)
|
|
from trendradar.core.analyzer import (
|
|
calculate_news_weight,
|
|
format_time_display,
|
|
count_word_frequency,
|
|
)
|
|
|
|
__all__ = [
|
|
"parse_multi_account_config",
|
|
"validate_paired_configs",
|
|
"limit_accounts",
|
|
"get_account_at_index",
|
|
"load_config",
|
|
"load_frequency_words",
|
|
"matches_word_groups",
|
|
# 数据处理
|
|
"save_titles_to_file",
|
|
"read_all_today_titles_from_storage",
|
|
"read_all_today_titles",
|
|
"detect_latest_new_titles_from_storage",
|
|
"detect_latest_new_titles",
|
|
"is_first_crawl_today",
|
|
# 统计分析
|
|
"calculate_news_weight",
|
|
"format_time_display",
|
|
"count_word_frequency",
|
|
]
|