import asyncio,json
from pathlib import Path
from gpt_researcher import GPTResearcher
async def main():
 config=json.loads(Path('source-urls.json').read_text())
 researcher=GPTResearcher(query='只依据提供官网比较三款资料研究工具的运行方式、资料类型和许可；未说明留空；保留直接URL。',report_type='research_report',source_urls=config['source_urls'],complement_source_urls=False)
 await researcher.conduct_research()
 Path('actual-report.md').write_text(await researcher.write_report())
if __name__=='__main__': asyncio.run(main())
