Skip to content

Commit 23cf68a

Browse files
committed
fix: cloud url
1 parent 9bd08d5 commit 23cf68a

17 files changed

Lines changed: 18 additions & 18 deletions

.env.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
MAXUN_API_KEY=
2-
MAXUN_BASE_URL=https://app.maxun.dev/
2+
MAXUN_BASE_URL=https://app.maxun.dev/api/sdk/

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ from maxun import Config
5252

5353
config = Config(
5454
api_key="your-api-key", # Required
55-
base_url="https://app.maxun.dev/", # Optional, defaults to localhost
55+
base_url="https://app.maxun.dev/api/sdk/", # Optional, defaults to localhost
5656
team_id="your-team-uuid", # Optional, for team-scoped robots
5757
)
5858
```
@@ -61,7 +61,7 @@ Environment variables are supported via a `.env` file (uses `python-dotenv`):
6161

6262
```
6363
MAXUN_API_KEY=your-api-key
64-
MAXUN_BASE_URL=https://app.maxun.dev/
64+
MAXUN_BASE_URL=https://app.maxun.dev/api/sdk/
6565
MAXUN_TEAM_ID=your-team-uuid
6666
```
6767

client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def __init__(self, config: Config):
1717
if config.team_id:
1818
headers["x-team-id"] = config.team_id
1919

20-
self.base_url = config.base_url or "https://app.maxun.dev/"
20+
self.base_url = config.base_url or "https://app.maxun.dev/api/sdk/"
2121

2222
self.client = httpx.AsyncClient(
2323
base_url=self.base_url,

examples/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ cp ../.env.example ../.env
2121
| Variable | Description | Default |
2222
|----------|-------------|---------|
2323
| `MAXUN_API_KEY` | Your Maxun API key (required) ||
24-
| `MAXUN_BASE_URL` | Base URL of your Maxun server | `https://app.maxun.dev/` |
24+
| `MAXUN_BASE_URL` | Base URL of your Maxun server | `https://app.maxun.dev/api/sdk/` |
2525
| `MAXUN_TEAM_ID` | Team UUID for team-scoped robots (optional) ||
2626

2727
**3. Run any example:**

examples/basic_crawl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
async def main():
2424
crawler = Crawl(Config(
2525
api_key=os.environ["MAXUN_API_KEY"],
26-
base_url=os.environ.get("MAXUN_BASE_URL", "https://app.maxun.dev/"),
26+
base_url=os.environ.get("MAXUN_BASE_URL", "https://app.maxun.dev/api/sdk/"),
2727
))
2828

2929
robot = await crawler.create(

examples/basic_extraction.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
async def main():
2222
extractor = Extract(Config(
2323
api_key=os.environ["MAXUN_API_KEY"],
24-
base_url=os.environ.get("MAXUN_BASE_URL", "https://app.maxun.dev/"),
24+
base_url=os.environ.get("MAXUN_BASE_URL", "https://app.maxun.dev/api/sdk/"),
2525
))
2626

2727
# Extract top story from Hacker News

examples/basic_search.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
async def main():
2222
searcher = Search(Config(
2323
api_key=os.environ["MAXUN_API_KEY"],
24-
base_url=os.environ.get("MAXUN_BASE_URL", "https://app.maxun.dev/"),
24+
base_url=os.environ.get("MAXUN_BASE_URL", "https://app.maxun.dev/api/sdk/"),
2525
))
2626

2727
robot = await searcher.create(

examples/chained_extract.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
async def main():
2222
extractor = Extract(Config(
2323
api_key=os.environ["MAXUN_API_KEY"],
24-
base_url=os.environ.get("MAXUN_BASE_URL", "https://app.maxun.dev/"),
24+
base_url=os.environ.get("MAXUN_BASE_URL", "https://app.maxun.dev/api/sdk/"),
2525
))
2626

2727
robot = await (

examples/complete_workflow.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ async def main():
2121

2222
extractor = Extract(Config(
2323
api_key=os.environ["MAXUN_API_KEY"],
24-
base_url=os.environ.get("MAXUN_BASE_URL", "https://app.maxun.dev/"),
24+
base_url=os.environ.get("MAXUN_BASE_URL", "https://app.maxun.dev/api/sdk/"),
2525
))
2626

2727
print("Creating full extraction robot...")

examples/form_fill_screenshot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
async def main():
1919
extractor = Extract(Config(
2020
api_key=os.environ["MAXUN_API_KEY"],
21-
base_url=os.environ.get("MAXUN_BASE_URL", "https://app.maxun.dev/"),
21+
base_url=os.environ.get("MAXUN_BASE_URL", "https://app.maxun.dev/api/sdk/"),
2222
))
2323

2424
robot = await (

0 commit comments

Comments
 (0)