Browser-use Browser AI Agent
πΊ refer link :https://youtu.be/15LCeh46sMs?si=FZgEk4C-NsBmKfD4
Github: https://github.com/browser-use/browser-use
Setup
With pip (Python>=3.11):
pip install browser-useInstall Playwright:
playwright install chromiumSpin up your agent:
from langchain_openai import ChatOpenAI
from browser_use import Agent
import asyncio
from dotenv import load_dotenv
load_dotenv()
async def main():
agent = Agent(
task="Compare the price of gpt-4o and DeepSeek-V3",
llm=ChatOpenAI(model="gpt-4o"),
)
await agent.run()
asyncio.run(main())Add your API keys for the provider you want to use to your
.envfile:
Last updated