New Maxun SDKs: Node.js and Python
Both official SDKs have been rebuilt to make Maxun simpler to use from code. The Node.js SDK (maxun-sdk) and the Python SDK (maxun) now share the same design, so the same few lines work in either language.
npm install maxun-sdk@0.0.15
pip install maxun==0.0.13⚠️ Please upgrade to the latest SDK & Maxun App versions for the best experience.
Everything starts from one object
Create a robot with one call: the robot name, then a URL, search query or file, then any options. The name is required, and it is how the robot appears in the Maxun dashboard.
Node.js
import { Maxun } from 'maxun-sdk';
const maxun = new Maxun({ apiKey: 'your-api-key' });
const robot = await maxun.scrape('Maxun', 'https://maxun.dev', { formats: ['markdown'] });
const result = await robot.run();
console.log(result.markdown);Python
from maxun import Maxun
async with Maxun(api_key="your-api-key") as maxun:
robot = await maxun.scrape("Maxun", "https://maxun.dev'", formats=["markdown"])
result = await robot.run()
print(result.markdown)Every robot type in Maxun is available the same way:
maxun.scrape(...): turn a page into Markdown, HTML, text, links, a summary or screenshotsmaxun.extract(...): extract data with a plain-English prompt, or with selectorsmaxun.crawl(...): collect content from a whole websitemaxun.search(...): search the web, and optionally scrape the resultsmaxun.documents.extract(...)/.parse(...): read PDF, DOCX, XLSX, CSV, JPG and PNG filesmaxun.robots: list, find and delete any robot on your account
Learn more
What's Changed
- chore: sync new logo by @amhsirak in #1225
- fix(db): add migration for run.hasChanges by @mrhard9090 in #1224
- feat: show test proxy state & !show proxy fetch toast on page load by @amhsirak in #1229
- fix(run): escape quotes in captured-text CSV downloads by @breken-ai in #1226
- fix: recorder discard flow for chrome web data errors by @amhsirak in #1230
- fix: align recorder action box with browser window by @amhsirak in #1231
- fix(gsheet): write one row per screenshot in the Screenshot sheet by @breken-ai in #1227
- chore: pre-release v0.0.48 by @amhsirak in #1232
New Contributors
- @mrhard9090 made their first contribution in #1224
- @breken-ai made their first contribution in #1226
Full Changelog: v0.0.47...v0.0.48