INNER CODE UNIT · Python
filepath
zillionare/zillionare · scripts/enhanced_news_crawler.py:355
filepath = self.temp_dir / filename
# 确保目录存在
filepath.parent.mkdir(parents=True, exist_ok=True)
# 准备Markdown内容
markdown_content = f"""# {article.title}
**来源**: {article.source}
**原文链接**: {article.url}
**发布时间**: {article.published.strftime('%Y-%m-%d %H:%M:%S')}
**抓取时间**: {datetime.now().strftime('%Y-%m-%d %H:%M:%S')}
**分析理由**: {article.analysis_reason}
---
{article.translated_content}