{
 "schema_version": 1,
 "generated": "2026-10-24",
 "id": "browser-use-browser-use--automate-web-task-with-python-agent",
 "repo": "browser-use/browser-use",
 "repo_url": "https://github.com/browser-use/browser-use",
 "repo_slug": "browser-use-browser-use",
 "title": "Automate a web task with a Python browser agent",
 "page_title": "Browser Use tutorial: automate a web task with a Python AI agent",
 "summary": "Give an Agent a task in plain English and an LLM, and let it browse to complete it.",
 "who": "A developer who wants to automate a repetitive lookup on a website.",
 "problem": "Hand-written scrapers break when sites change.",
 "outcome": "The task's final result returned from the agent's run.",
 "steps": [
  "Install with `uv add browser-use`",
  "Put OPENAI_API_KEY in .env",
  "Create an Agent with a task and ChatOpenAI",
  "Run it and print history.final_result()"
 ],
 "agent_prompt": "Using browser-use/browser-use, run an Agent with the task <task> and print the final result. Confirm the result matches what the site shows.",
 "agents": [
  "any"
 ],
 "difficulty": "Intermediate",
 "time": "30 minutes",
 "basis": "readme",
 "caveat": "Use non-sensitive sites first; agents act with whatever access the browser has.",
 "category": "Work and operations",
 "tags": [
  "Work and operations"
 ],
 "lang": "python",
 "requirements": [
  "Python 3.12 with uv",
  "An LLM API key such as OpenAI, or a Browser Use key"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [
  {
   "tag": "credentials",
   "notice": "Your LLM API key is read from .env and billed per step."
  }
 ],
 "best": true,
 "score": 1.0,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/browser-use-browser-use/automate-web-task-with-python-agent/",
 "md": "https://dedupedai.com/use-cases/browser-use-browser-use/automate-web-task-with-python-agent/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/browser-use-browser-use--automate-web-task-with-python-agent.json",
 "api_version": "v1"
}
