Open-source Python library for AI browser agents, plus Browser Use Cloud: stealth browsers and a hosted agent API.
Python ai-agentsai-toolsbrowser-agentbrowser-automationbrowser-usecdpcloud-browsercomputer-useheadless-browserllmmcpplaywrightpythonremote-browserstealth-browserweb-automationweb-scraping
add goal to each use case, and a README.md to specify each use case objective
Morris Lee6822ace171d5
diff --git a/examples/use-cases/README.md b/examples/use-cases/README.mdnew file mode 100644index 000000000..90ec4c4f4--- /dev/null+++ b/examples/use-cases/README.md@@ -0,0 +1,15 @@+# Use Cases of Browser-Use++| File Name | Description |+|-----------|------------|+| `captcha.py` | Automates CAPTCHA solving on a demo website. |+| `check_appointment.py` | Checks for available visa appointment slots on the Greece MFA website. |+| `find_and_apply_to_jobs.py` | Searches for job listings, evaluates relevance based on a CV, and applies automatically. |+| `online_coding_agent.py` | Implements a multi-agent system for online code editors, with separate agents for coding and execution. |+| `post-twitter.py` | Provides a template for automated posting on X (Twitter), including new tweets, tagging, and replies. |+| `scrolling_page.py` | Automates webpage scrolling with various scrolling actions and text search functionality. |+| `twitter_post_using_cookies.py` | Automates posting on X (Twitter) using stored authentication cookies. |+| `web_voyager_agent.py` | A general-purpose web navigation agent for tasks like flight booking and course searching. |+++diff --git a/examples/use-cases/captcha.py b/examples/use-cases/captcha.pyindex fcfe96813..784eb04ae 100644--- a/examples/use-cases/captcha.py+++ b/examples/use-cases/captcha.py@@ -1,6 +1,8 @@"""-Simple try of the agent.+Goal: Automates CAPTCHA solving on a demo website.++Simple try of the agent.@dev You need to add OPENAI_API_KEY to your environment variables.NOTE: captchas are hard. For this example it works. But e.g. for iframes it does not.for this example it helps to zoom in.diff --git a/examples/use-cases/check_appointment.py b/examples/use-cases/check_appointment.pyindex 11f4bd8b7..8e010f014 100644--- a/examples/use-cases/check_appointment.py+++ b/examples/use-cases/check_appointment.py@@ -1,3 +1,5 @@+# Goal: Checks for available visa appointment slots on the Greece MFA website.+import asyncioimport osdiff --git a/examples/use-cases/find_and_apply_to_jobs.py b/examples/use-cases/find_and_apply_to_jobs.pyindex 14032eecf..daf65897b 100644--- a/examples/use-cases/find_and_apply_to_jobs.py+++ b/examples/use-cases/find_and_apply_to_jobs.py@@ -1,8 +1,7 @@"""-Find and apply to jobs.+Goal: Searches for job listings, evaluates relevance based on a CV, and applies@dev You need to add OPENAI_API_KEY to your environment variables.-Also you have to install PyPDF2 to read pdf files: pip install PyPDF2"""diff --git a/examples/use-cases/online_coding_agent.py b/examples/use-cases/online_coding_agent.pyindex ba98a2f38..390adc0bc 100644--- a/examples/use-cases/online_coding_agent.py+++ b/examples/use-cases/online_coding_agent.py@@ -1,3 +1,5 @@+# Goal: Implements a multi-agent system for online code editors, with separate agents for coding and execution.+import osimport sysimport asynciodiff --git a/examples/use-cases/post-twitter.py b/examples/use-cases/post-twitter.pyindex e19e02bfa..86caef1a0 100644--- a/examples/use-cases/post-twitter.py+++ b/examples/use-cases/post-twitter.py@@ -1,4 +1,6 @@"""+Goal: Provides a template for automated posting on X (Twitter), including new tweets, tagging, and replies.+X Posting Template using browser-use----------------------------------------diff --git a/examples/use-cases/scrolling_page.py b/examples/use-cases/scrolling_page.pyindex 6f83ba365..9bc358e1e 100644--- a/examples/use-cases/scrolling_page.py+++ b/examples/use-cases/scrolling_page.py@@ -1,3 +1,5 @@+# Goal: Automates webpage scrolling with various scrolling actions and text search functionality.+import osimport sysimport asynciodiff --git a/examples/use-cases/twitter_post_using_cookies.py b/examples/use-cases/twitter_post_using_cookies.pyindex 0b556c8ee..72ac98cea 100644--- a/examples/use-cases/twitter_post_using_cookies.py+++ b/examples/use-cases/twitter_post_using_cookies.py@@ -1,3 +1,5 @@+# Goal: Automates posting on X (Twitter) using stored authentication cookies.+import asyncioimport osdiff --git a/examples/use-cases/web_voyager_agent.py b/examples/use-cases/web_voyager_agent.pyindex 9e2c0af93..0b0de9042 100644--- a/examples/use-cases/web_voyager_agent.py+++ b/examples/use-cases/web_voyager_agent.py@@ -1,3 +1,5 @@+# Goal: A general-purpose web navigation agent for tasks like flight booking and course searching.+import osimport sysimport asyncio