Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/DemonDamon/FinnewsHunter
/ functions
Functions
1,198 in github.com/DemonDamon/FinnewsHunter
⨍
Functions
1,198
◇
Types & classes
338
↳
Endpoints
72
↓ 1 callers
Method
_get_site_config
获取网站配置
backend/app/tools/crawler_enhanced.py:599
↓ 1 callers
Method
_init_driver
初始化 Selenium WebDriver
backend/app/tools/dynamic_crawler_example.py:41
↓ 1 callers
Method
_init_weights
初始化模型权重
backend/app/alpha_mining/model/alpha_generator.py:93
↓ 1 callers
Method
_is_cache_valid
检查缓存是否有效
backend/app/services/stock_data_service.py:169
↓ 1 callers
Method
_is_news_url
判断是否为新闻URL
backend/app/tools/search_engine_crawler.py:202
↓ 1 callers
Method
_is_noise_text
判断是否为噪音文本(广告、版权等)
backend/app/tools/sina_crawler.py:301
↓ 1 callers
Method
_is_noise_text
判断是否为噪音文本
backend/app/financial/providers/sina/fetchers/news.py:417
↓ 1 callers
Method
_is_stock_related_by_title
根据标题关键词判断是否为股票相关新闻 Args: title: 新闻标题 Returns: 是否为股票相关
backend/app/tools/crawler_base.py:289
↓ 1 callers
Method
_is_stock_related_by_url
根据URL路径判断是否为股票相关新闻 Args: url: 新闻URL Returns: 是否为股票相关
backend/app/tools/crawler_base.py:276
↓ 1 callers
Method
_load_custom_dict
加载自定义词典
backend/app/tools/text_cleaner.py:48
↓ 1 callers
Function
_normalize_stock_row
(code: str, name: str)
backend/app/services/stock_data_service.py:71
↓ 1 callers
Method
_normalize_symbol
标准化股票代码为新浪格式
backend/app/financial/providers/sina/fetchers/news.py:295
↓ 1 callers
Method
_parse_api_news_item
解析API返回的新闻数据 Args: news_data: API返回的单条新闻数据 Returns: NewsItem对象
backend/app/tools/eeo_crawler.py:195
↓ 1 callers
Method
_parse_api_news_item
解析API返回的新闻数据 Args: news_data: API返回的单条新闻数据 Returns: NewsItem对象
backend/app/tools/tencent_crawler.py:202
↓ 1 callers
Method
_parse_dataframe
从 DataFrame 解析情感数据
backend/app/alpha_mining/features/sentiment.py:116
↓ 1 callers
Method
_parse_dict
从字典解析情感数据
backend/app/alpha_mining/features/sentiment.py:140
↓ 1 callers
Method
_parse_formula
解析因子表达式字符串
backend/app/alpha_mining/tools/alpha_mining_tool.py:405
↓ 1 callers
Method
_parse_list
从列表解析情感数据
backend/app/alpha_mining/features/sentiment.py:150
↓ 1 callers
Method
_parse_search_results
解析搜索引擎返回的内容,提取新闻链接和标题 Args: content: 爬取的页面内容(Markdown格式) engine: 搜索引擎类型 max_results: 最大结
backend/app/tools/search_engine_crawler.py:159
↓ 1 callers
Method
_parse_time_string
解析时间字符串
backend/app/tools/yicai_crawler.py:182
↓ 1 callers
Method
_parse_time_string
解析时间字符串
backend/app/tools/jingji21_crawler.py:198
↓ 1 callers
Method
_parse_time_string
解析时间字符串
backend/app/tools/jwview_crawler.py:189
↓ 1 callers
Method
_parse_time_string
解析时间字符串
backend/app/tools/caijing_crawler.py:228
↓ 1 callers
Method
_parse_time_string
解析时间字符串
backend/app/tools/eastmoney_crawler.py:236
↓ 1 callers
Method
_parse_time_string
解析时间字符串
backend/app/tools/netease163_crawler.py:185
↓ 1 callers
Method
_parse_time_string
解析时间字符串
backend/app/tools/nbd_crawler.py:261
↓ 1 callers
Method
_parse_time_string
解析时间字符串
backend/app/financial/providers/yicai/fetchers/news.py:207
↓ 1 callers
Method
_parse_time_string
解析时间字符串
backend/app/financial/providers/eastmoney/fetchers/news.py:213
↓ 1 callers
Method
_parse_time_string
解析时间字符串
backend/app/financial/providers/nbd/fetchers/news.py:214
↓ 1 callers
Method
_parse_time_string
解析时间字符串
backend/app/financial/providers/tencent/fetchers/news.py:233
↓ 1 callers
Method
_parse_time_string
解析时间字符串
backend/app/financial/providers/netease/fetchers/news.py:211
↓ 1 callers
Function
_pct_change
计算百分比变化 Args: x: [batch, time_steps] Returns: 百分比变化 [batch, time_steps]
backend/app/alpha_mining/utils.py:123
↓ 1 callers
Method
_prepare_news_summary
准备新闻摘要
backend/app/agents/orchestrator.py:720
↓ 1 callers
Method
_repair_markdown_table
修复 Markdown 表格格式问题 主要解决:多行内容被错误拆分为多行单元格,导致首列为空的问题
backend/app/agents/news_analyst.py:264
↓ 1 callers
Function
_robust_normalize
稳健标准化(使用中位数和 MAD) Args: x: [batch, num_features, time_steps] Returns: 标准化后的张量
backend/app/alpha_mining/utils.py:140
↓ 1 callers
Function
_rolling_std
计算滚动标准差 Args: x: [batch, time_steps] window: 窗口大小 Returns: 滚动标准差 [batch, time_steps]
backend/app/alpha_mining/utils.py:99
↓ 1 callers
Method
_run_parallel_mode
运行并行分析模式
backend/app/agents/orchestrator.py:200
↓ 1 callers
Method
_run_quick_mode
运行快速分析模式
backend/app/agents/orchestrator.py:681
↓ 1 callers
Method
_run_realtime_debate_mode
运行实时辩论模式(支持动态搜索)
backend/app/agents/orchestrator.py:296
↓ 1 callers
Method
_save_checkpoint
保存训练检查点
backend/app/alpha_mining/model/trainer.py:274
↓ 1 callers
Method
_search_akshare
从 AkShare 获取数据
backend/app/agents/data_collector_v2.py:481
↓ 1 callers
Method
_search_akshare
从 AkShare 获取数据
backend/app/agents/search_analyst.py:181
↓ 1 callers
Method
_search_bochaai
从 BochaAI 搜索新闻
backend/app/agents/data_collector_v2.py:525
↓ 1 callers
Method
_search_bochaai
从 BochaAI 搜索新闻
backend/app/agents/search_analyst.py:237
↓ 1 callers
Method
_search_browser
使用交互式爬虫搜索
backend/app/agents/data_collector_v2.py:561
↓ 1 callers
Method
_search_browser
使用交互式爬虫搜索
backend/app/agents/search_analyst.py:278
↓ 1 callers
Method
_search_knowledge_base
从知识库搜索历史数据
backend/app/agents/data_collector_v2.py:593
↓ 1 callers
Method
_search_knowledge_base
从知识库搜索历史数据
backend/app/agents/search_analyst.py:310
↓ 1 callers
Method
_signal_to_position
信号转换为持仓
backend/app/alpha_mining/backtest/evaluator.py:157
↓ 1 callers
Method
_stock_news_nums_stat
(self)
legacy_v1/src/Killua/buildstocknewsdb.py:209
↓ 1 callers
Method
_summarize_market_data
摘要行情数据
backend/app/agents/quantitative_agent.py:372
↓ 1 callers
Method
_summarize_news
汇总新闻信息
backend/app/agents/debate_agents.py:166
↓ 1 callers
Method
_summarize_news
汇总新闻信息
backend/app/agents/debate_agents.py:296
↓ 1 callers
Method
_technical_analysis
使用 LLM 进行技术分析
backend/app/agents/quantitative_agent.py:256
↓ 1 callers
Method
add_keywords
添加检索关键词
backend/app/knowledge/graph_service.py:206
↓ 1 callers
Method
add_name_variants
添加名称变体 Args: stock_code: 股票代码 variants: 名称变体列表 Returns: 是否成功
backend/app/knowledge/graph_service.py:101
↓ 1 callers
Function
add_path
(path)
legacy_v1/src/Kite/__init__.py:5
↓ 1 callers
Function
add_path
(path)
legacy_v1/src/Leorio/__init__.py:5
↓ 1 callers
Function
add_path
(path)
legacy_v1/src/Killua/__init__.py:5
↓ 1 callers
Function
add_raw_html_column
添加 raw_html 字段到 news 表
backend/add_raw_html_column.py:23
↓ 1 callers
Function
akshare_direct_connection
akshare 访问国内数据源时需绕过 shell 代理,否则易 ProxyError。
backend/app/services/stock_data_service.py:60
↓ 1 callers
Method
analyze
生成看空分析报告
backend/app/agents/debate_agents.py:215
↓ 1 callers
Function
analyze_single_news
(news_id: int)
backend/app/api/v1/analysis.py:118
↓ 1 callers
Method
build
从情感数据构建特征张量 Args: data: 情感数据,支持多种格式: - DataFrame: columns=[date, sentiment, news_count]
backend/app/alpha_mining/features/sentiment.py:61
↓ 1 callers
Method
build_simple_graph_from_info
基于 akshare 信息构建简单的知识图谱结构 即使 akshare 调用失败,也能基于股票名称构建基础图谱 Args: stock_code: 股票代码 stoc
backend/app/knowledge/knowledge_extractor.py:583
↓ 1 callers
Function
calculateGridCols
()
frontend/src/pages/NewsListPage.tsx:450
↓ 1 callers
Function
checkExistingTask
()
frontend/src/pages/StockAnalysisPage.tsx:944
↓ 1 callers
Method
classifyHistoryStockNews
Build classifier from historical news(articles/documents) of specific stock. # Arguments: dbName: Name of database. stockCode: Code of sp
legacy_v1/Text_Analysis/text_mining.py:252
↓ 1 callers
Method
classify_stock_news
(self, unseen_raw_document, database_name,
legacy_v1/src/Leorio/topicmodelling.py:147
↓ 1 callers
Function
clean_text
清理文本
backend/app/api/v1/debug.py:40
↓ 1 callers
Method
clean_text
基础文本清洗 Args: text: 原始文本 Returns: 清洗后的文本
backend/app/tools/text_cleaner.py:64
↓ 1 callers
Function
clear_all_news_data
清除所有新闻相关数据
backend/clear_news_data.py:24
↓ 1 callers
Method
clear_cache
清除缓存 Args: pattern: 可选的缓存键模式,如果提供则只清除匹配的缓存
backend/app/services/stock_data_service.py:192
↓ 1 callers
Function
close_neo4j_client
关闭 Neo4j 客户端
backend/app/core/neo4j_client.py:145
↓ 1 callers
Method
collect_data
搜集股票相关数据 Args: stock_code: 股票代码 stock_name: 股票名称 data_requirements: 数据需求配置
backend/app/agents/data_collector.py:42
↓ 1 callers
Method
compare_factors
比较多个因子的表现 Args: factors: 因子列表 returns: 收益率 factor_names: 因子名称列表 Ret
backend/app/alpha_mining/backtest/evaluator.py:267
↓ 1 callers
Method
coroutine_run
Coroutines running.
legacy_v1/Crawler/crawler_sina.py:294
↓ 1 callers
Method
countchn
Count Chinese numbers and calculate the frequency of Chinese occurrence. # Arguments: string: Each part of crawled website ana
legacy_v1/Crawler/crawler_stcn.py:47
↓ 1 callers
Method
countchn
Count Chinese numbers and calculate the frequency of Chinese occurrence. # Arguments: string: Each part of crawled website ana
legacy_v1/Crawler/crawler_nbd.py:46
↓ 1 callers
Method
countchn
Count Chinese numbers and calculate the frequency of Chinese occurrence. # Arguments: string: Each part of crawled website analyz
legacy_v1/Crawler/crawler_cnstock.py:52
↓ 1 callers
Method
countchn
Count Chinese numbers and calculate the frequency of Chinese occurrence. # Arguments: string: Each part of crawled website ana
legacy_v1/Crawler/crawler_sina.py:45
↓ 1 callers
Method
countchn
Count Chinese numbers and calculate the frequency of Chinese occurrence. # Arguments: string: Each part of crawled website ana
legacy_v1/Crawler/crawler_jrj.py:59
↓ 1 callers
Method
crawl
爬取新闻(支持动态加载) Args: start_page: 起始页(对于点击加载更多的网站,这个参数表示点击次数) end_page: 结束页 Return
backend/app/tools/dynamic_crawler_example.py:62
↓ 1 callers
Method
crawl
爬取单个 URL Args: url: 目标 URL engine: 爬取引擎 ('requests', 'playwright', 'jina', 'auto') force
backend/app/tools/crawler_enhanced.py:648
↓ 1 callers
Method
crawl_batch
批量爬取 Args: urls: URL 列表 engine: 爬取引擎 delay: 请求间隔(秒) Returns:
backend/app/tools/crawler_enhanced.py:756
↓ 1 callers
Method
crawl_search_results
爬取搜索结果中的页面内容 Args: search_results: 搜索结果列表 max_results: 最多爬取多少个页面 Returns:
backend/app/tools/interactive_crawler.py:788
↓ 1 callers
Function
create_custom_llm_provider
动态创建自定义 LLM provider(用于模型切换) Args: provider: 厂商名称(bailian, openai, deepseek, kimi, zhipu) model: 模型名称 temperatur
backend/app/services/llm_service.py:300
↓ 1 callers
Function
create_debate_workflow
创建辩论工作流实例
backend/app/agents/debate_agents.py:641
↓ 1 callers
Method
create_dictionary
将文中每个词汇关联唯一的ID,因此需要定义词汇表 :param: raw_documents_list, 原始语料列表,每个元素即文本,如["洗尽铅华...", "风雨赶路人...", ...] :param: savepath, corpora.D
legacy_v1/src/Leorio/topicmodelling.py:33
↓ 1 callers
Function
create_interactive_crawler
创建交互式爬虫(兼容旧接口)
backend/app/tools/interactive_crawler.py:839
↓ 1 callers
Function
create_news_analyst
创建新闻分析师智能体实例 Args: llm_provider: LLM 提供者 tools: 工具列表 organization_id: 组织ID(用于多租户隔离),默认 "finnews" Re
backend/app/agents/news_analyst.py:455
↓ 1 callers
Method
create_or_update_company
创建或更新公司节点 Args: company: 公司节点数据 Returns: 是否成功
backend/app/knowledge/graph_service.py:54
↓ 1 callers
Function
create_orchestrator
创建辩论编排器 Args: mode: 辩论模式 (parallel, realtime_debate, quick_analysis) llm_provider: LLM 提供者 enable_dynamic_search
backend/app/agents/orchestrator.py:899
↓ 1 callers
Function
create_quantitative_agent
创建量化分析智能体 Args: llm_provider: LLM 提供者 enable_alpha_mining: 是否启用因子挖掘 model_path: 预训练模型路径 Returns:
backend/app/agents/quantitative_agent.py:454
↓ 1 callers
Function
create_search_engine_crawler
创建搜索引擎爬虫实例
backend/app/tools/search_engine_crawler.py:293
↓ 1 callers
Method
debate_round
辩论回合发言(用于实时辩论模式) Args: prompt: 辩论提示词 enable_data_request: 是否启用数据请求功能 Returns:
backend/app/agents/debate_agents.py:133
↓ 1 callers
Method
debate_round
辩论回合发言(用于实时辩论模式) Args: prompt: 辩论提示词 enable_data_request: 是否启用数据请求功能 Returns:
backend/app/agents/debate_agents.py:317
↓ 1 callers
Function
debug_crawl
实时爬取指定 URL 并返回内容(用于调试) - **url**: 要爬取的新闻 URL - **return_html**: 是否返回原始 HTML(默认 True)
backend/app/api/v1/debug.py:158
↓ 1 callers
Function
deserializeSession
(session: SerializedSession)
frontend/src/store/useDebateStore.ts:105
↓ 1 callers
Function
escapeRegExp
(str: string)
frontend/src/components/HighlightText.tsx:32
← previous
next →
401–500 of 1,198, ranked by callers