Skip to content

Commit b8165e0

Browse files
committed
Update news-use and vibetest-use documentation for API key and setup instructions
1 parent 0e14121 commit b8165e0

File tree

3 files changed

+17
-6
lines changed

3 files changed

+17
-6
lines changed

docs/examples/apps/news-use.mdx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,13 @@ pip install -U browser-use
3232

3333
Export your Gemini API key, get it from: [Google AI Studio](https://makersuite.google.com/app/apikey)
3434
```bash
35-
export GEMINI_API_KEY='your-google-api-key-here'
35+
export GOOGLE_API_KEY='your-google-api-key-here'
36+
```
37+
38+
Clone the repo, cd to the app
39+
```bash
40+
git clone https://github.com/browser-use/browser-use.git
41+
cd browser-use/examples/apps/news-use
3642
```
3743

3844
## Usage Examples

docs/examples/apps/vibetest-use.mdx

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,19 @@ Requires **browser-use&nbsp; < v0.5.0** and Playwright Chromium. Currently getti
2525
## Quick Start
2626

2727
```bash
28-
# 1. Create & activate env
28+
29+
# 1. Clone repo
30+
git clone https://github.com/browser-use/vibetest-use.git
31+
cd vibetest-use
32+
33+
# 2. Create & activate env
2934
uv venv --python 3.11
3035
source .venv/bin/activate
3136

32-
# 2. Install project
37+
# 3. Install project
3338
uv pip install -e .
3439

35-
# 3. Install browser runtime once
40+
# 4. Install browser runtime once
3641
playwright install chromium --with-deps --no-shell
3742
```
3843

examples/apps/news-use/news_monitor.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,10 @@ def setup_environment(debug: bool):
4040

4141
from browser_use import Agent, BrowserSession, ChatGoogle
4242

43-
GEMINI_API_KEY = os.getenv('GEMINI_API_KEY') or os.getenv('GOOGLE_API_KEY') or 'xxxx'
43+
GEMINI_API_KEY = os.getenv('GOOGLE_API_KEY') or 'xxxx'
4444

4545
if GEMINI_API_KEY == 'xxxx':
46-
print('⚠️ WARNING: Please set GEMINI_API_KEY or GOOGLE_API_KEY environment variable')
46+
print('⚠️ WARNING: Please set GOOGLE_API_KEY environment variable')
4747
print(' You can get an API key at: https://makersuite.google.com/app/apikey')
4848
print(" Then run: export GEMINI_API_KEY='your-api-key-here'")
4949
print()

0 commit comments

Comments
 (0)