Files

23 lines
861 B
Python

# 军事科技每日摘报 - 功能模块包
# V3 正式版,模块化重组
from .config import (
RSS_FEEDS, FETCH_TIMEOUT, MAX_THREADS, TIME_WINDOW_HOURS,
KEYWORDS, SCORE_DIMENSIONS, CATEGORIES, load_ai_config, AI_CONCURRENCY,
)
from .utils import (
is_chinese, clean_html, extract_content, parse_pub_time,
call_ai, wrap_text,
)
from .logger import get_logger
from .cache import get_cache
from .rss_fetcher import fetch_all_feeds
from .translator import batch_translate_articles, batch_translate_titles, batch_translate_contents
from .keyword_filter import keyword_filter
from .ai_analyzer import (
score_and_classify_article, calculate_weighted_score,
generate_category_overview, generate_webzine_for_article,
batch_score_and_classify_articles,
)
from .image_generator import create_webzine_image, create_combined_webzine_image