T09 · Insecure Skill Coding Practices
- Location
src/analyzer.py:212- Finding
Fabricated and Randomized Financial Data Presented as Real-Time Analysis
- Content
View full analysis
List[Dict]: """获取实时新闻(使用真实财经网站URL)""" news_list = [] news_templates = [ {"title": "宁德时代发布新一代电池技术,续航突破1000公里", "industry": "新能源", "companies": ["宁德时代"], "url": "https://finance.eastmoney.com/a/20260313.html"}, {"title": "比亚迪新能源汽车销量突破500万辆", "industry": "新能源", "companies": ["比亚迪"], "url": "https://finance.eastmoney.com/a/20260312.html"}, {"title": "科大讯飞星火认知大模型V4.0发布", "industry": "信息技术", "companies": ["科大讯飞"], "url": "https://finance.eastmoney.com/a/20260311.html"}, {"title": "中国平安发布2024年度业绩报告", "industry": "金融", "companies": ["中国平安"], "url": "https://finance.eastmoney.com/a/20260310.html"}, {"title": "恒瑞医药创新药获批上市", "industry": "医药", "companies": ["恒瑞医药"], "url": "https://finance.eastmoney.com/a/20260309.html"}, {"title": "中芯国际晶圆产能持续扩张", "industry": "半导体", "companies": ["中芯国际"], "url": "https://finance.eastmoney.com/a/20260308.html"}, {"title": "招商银行零售业务增长强劲", "industry": "金融", "companies": ["招商银行"], "url": "https://finance.eastmoney.com/a/20260307.html"}, {"title": "贵州茅台提价预期升温", "industry": "消费", "companies": ["贵州茅台"], "url": "https://finance.eastmoney.com/a/20260306.html"}, ] for i, template in enumerate(news_templates): companies = [] for c in template["companies"]: if c in self.companies: companies.append(self.companies[c]) sentiment, score = self._analyze_sentiment(template["title"]) news_list.append({ "title": templa ...[truncated 5147 chars]- Remediation
View remediation
