Skip to content

🌟 The Multi-Agent Framework: First AI Software Company, Towards Natural Language Programming

new file: examples/crawle_webpage.py

刘棒棒0353f36f0d9c
diff --git a/examples/crawle_webpage.py b/examples/crawle_webpage.py
new file mode 100644
index 000000000..2c616035f
--- /dev/null
+++ b/examples/crawle_webpage.py
@@ -0,0 +1,22 @@
+# -*- encoding: utf-8 -*-
+"""
+@Date : 2024/01/24 15:11:27
+@Author : orange-crow
+@File : crawle_webpage.py
+"""
+
+from metagpt.roles.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 data*"""
+ ci = CodeInterpreter(goal=prompt, use_tools=True)
+
+ await ci.run(prompt)
+
+
+if __name__ == "__main__":
+ import asyncio
+
+ asyncio.run(main())