INNER CODE UNIT · Python
main
zillionare/zillionare · scripts/debug_crawler.py:197
def main():
"""运行调试"""
print("新闻爬虫调试工具")
print("=" * 50)
tests = [
("RSS源调试", debug_rss_sources),
("OpenAI连接", debug_openai_connection),
("单篇文章处理", debug_single_article),
("临时目录检查", debug_temp_directory),
]
results = []
for test_name, test_func in tests:
try:
result = test_func()
results.append((test_name, result))
except Exception as e: