Skip to main content

Oxylabs studio python sdk

Project description

OxyLabs AI Studio Python SDK

A simple Python SDK for interacting with the Oxy Studio AI API.

Requirements

  • python 3.10 and above
  • API KEY

Installation

pip install oxylabs-ai-studio

Usage

Crawl (AiCrawl.crawl)

Parameters:

  • url (str): Starting URL to crawl (required)
  • user_prompt (str): Natural language prompt to guide extraction (required)
  • output_format (Literal["json", "markdown"]): Output format (default: "markdown")
  • schema (dict | None): OpenAPI schema for structured extraction (required if output_format is "json")
  • render_javascript (bool): Render JavaScript (default: False)
  • return_sources_limit (int): Max number of sources to return (default: 25)

Scrape (AiScraper.scrape)

Parameters:

  • url (str): Target URL to scrape (required)
  • output_format (Literal["json", "markdown"]): Output format (default: "markdown")
  • schema (dict | None): OpenAPI schema for structured extraction (required if output_format is "json")
  • render_javascript (bool): Render JavaScript (default: False)

Browser Agent (BrowserAgent.run)

Parameters:

  • url (str): Starting URL to browse (required)
  • user_prompt (str): Natural language prompt for extraction (required)
  • output_format (Literal["json", "markdown", "html", "screenshot"]): Output format (default: "markdown")
  • schema (dict | None): OpenAPI schema for structured extraction (required if output_format is "json")

See the examples folder for usage examples of each method. Each method has corresponding async version.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

oxylabs_ai_studio-0.1.0.tar.gz (43.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

oxylabs_ai_studio-0.1.0-py3-none-any.whl (8.3 kB view details)

Uploaded Python 3

File details

Details for the file oxylabs_ai_studio-0.1.0.tar.gz.

File metadata

  • Download URL: oxylabs_ai_studio-0.1.0.tar.gz
  • Upload date:
  • Size: 43.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.5

File hashes

Hashes for oxylabs_ai_studio-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ecfd46bcfa07bef6fc5812e1cea58096d1b6d82d4554cbf19c4b59d0388c3755
MD5 a0a9433d08247fd20775f6384b1f9728
BLAKE2b-256 54eaa402740cc886a0908eb0d2e9ca219292e9549533094582b7724b48e543f6

See more details on using hashes here.

File details

Details for the file oxylabs_ai_studio-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for oxylabs_ai_studio-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 317572de79374f80f20cbc419b18d97c6673c9e347ef9014e3451141d5add3f3
MD5 ce780b5f8f73586fbf6db2ddee37ed9a
BLAKE2b-256 048f7d1a0745b1ccef29ddf9126e72a7a6f46c7690f6ece26ccfb4f30cb5cc6e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page