Fix chrome user data dir problem (#2503)

This commit is contained in:
Shuchang Zheng
2025-05-28 22:41:06 -07:00
committed by GitHub
parent 869757398a
commit cf08ca951e
11 changed files with 283 additions and 85 deletions

View File

@@ -38,9 +38,9 @@ print(task)
More API & SDK information can be found in the [API Reference](/api-reference) section.
### Run Task Locally
You can also run browser tasks locally in your Python code, though it takes a bit more effort to set up the environment:
You can also run browser tasks locally with Python code, with a little bit of set up:
1. **Configure Skyvern** Run the setup wizard which will guide you through the configuration process, including Skyvern [MCP](/integrations/mcp) integration. This will generate a `.env` as the configuration settings file.
1. **Configure Skyvern** Run the setup wizard which will guide you through the configuration process. This will generate a `.env` as the configuration settings file.
```bash
skyvern init
```
@@ -51,7 +51,9 @@ You can also run browser tasks locally in your Python code, though it takes a bi
skyvern = Skyvern()
task = await skyvern.run_task(prompt="Find the top post on hackernews today")
task = await skyvern.run_task(
prompt="Find the top post on hackernews today",
)
print(task.model_dump())
```
A local browser will pop up. Skyvern will start executing the task in the browser and close the browser when the task is done.