mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-07-01 10:14:22 +08:00
23 lines
613 B
Python
23 lines
613 B
Python
# -*- encoding: utf-8 -*-
|
|
"""
|
|
@Date : 2024/01/24 15:11:27
|
|
@Author : orange-crow
|
|
@File : crawl_webpage.py
|
|
"""
|
|
|
|
from metagpt.roles.ci.code_interpreter import CodeInterpreter
|
|
|
|
|
|
async def main():
|
|
prompt = """Get data from `paperlist` table in https://papercopilot.com/statistics/iclr-statistics/iclr-2024-statistics/,
|
|
and save it to a csv file. paper title must include `multiagent` or `large language model`. *notice: print key variables*"""
|
|
ci = CodeInterpreter(goal=prompt, use_tools=True)
|
|
|
|
await ci.run(prompt)
|
|
|
|
|
|
if __name__ == "__main__":
|
|
import asyncio
|
|
|
|
asyncio.run(main())
|