github getmaxun/maxun v0.0.48

2 hours ago

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 screenshots
  • maxun.extract(...): extract data with a plain-English prompt, or with selectors
  • maxun.crawl(...): collect content from a whole website
  • maxun.search(...): search the web, and optionally scrape the results
  • maxun.documents.extract(...) / .parse(...): read PDF, DOCX, XLSX, CSV, JPG and PNG files
  • maxun.robots: list, find and delete any robot on your account

Learn more

What's Changed

New Contributors

Full Changelog: v0.0.47...v0.0.48

Don't miss a new maxun release

NewReleases is sending notifications on new releases.