Skip to main content

AI-Powered Selector Discovery - Discover once, scrape forever

Project description

Yosoi

DOI License Actions status image image codecov docs

[!WARNING] Yosoi is currently in Alpha. The API is expected to change significantly. We do not expect a stable API until we are out of Beta.

Yosoi - You Only Scrape Once (iteratively)

Discover once, scrape forever

Give Yosoi a URL, domain, or group of URLs, and it uses AI to automatically discover the best selectors for structured content.

Installation

# Install yosoi using uv
uv add yosoi

Quick Start

API Key

Export your API Key or create a .env file

# Set keys for whichever providers you want to use
<PROVIDER_NAME>_KEY=your_api_key_here
GROQ_API_KEY=your_groq_key_here               # groq/...
GEMINI_API_KEY=your_gemini_api_key_here       # gemini/...
OPENAI_API_KEY=your_openai_api_key_here       # openai/...
CEREBRAS_API_KEY=your_cerebras_api_key_here   # cerebras/...
OPENROUTER_API_KEY=your_openrouter_key_here  # openrouter/...

See the full list of supported providers

Basic Usage

CLI Usage

# Specify model explicitly with -m provider:model-name
uv run yosoi -m groq:llama-3.3-70b-versatile --url https://qscrape.dev/l1/eshop/catalog/?cat=Forge%20%26%20Smithing --contract Product

You can then find your scraped content, selectors and logs in ./.yosoi relative to the directory you run the CLI command from.

Python Usage

We also have example scripts, you can find them in our example docs

Citation

If you use yosoi in your research or projects, please cite it using the metadata provided in the CITATION.cff file.

Citation

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

yosoi-0.0.1a12.tar.gz (100.4 kB view details)

Uploaded Source

Built Distribution

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

yosoi-0.0.1a12-py3-none-any.whl (129.0 kB view details)

Uploaded Python 3

File details

Details for the file yosoi-0.0.1a12.tar.gz.

File metadata

  • Download URL: yosoi-0.0.1a12.tar.gz
  • Upload date:
  • Size: 100.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for yosoi-0.0.1a12.tar.gz
Algorithm Hash digest
SHA256 bdd20df0bb516f1fb417d056f23210c5ffb3269bcfa9a5944b1dee7691dafb5e
MD5 a4f0f73448ce5113c50333ec81f323a1
BLAKE2b-256 7b581569c5f3360045e81773266ff66072b19daedcf0eb4dfff778c3cf47b8c4

See more details on using hashes here.

Provenance

The following attestation bundles were made for yosoi-0.0.1a12.tar.gz:

Publisher: publish.yaml on CascadingLabs/Yosoi

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file yosoi-0.0.1a12-py3-none-any.whl.

File metadata

  • Download URL: yosoi-0.0.1a12-py3-none-any.whl
  • Upload date:
  • Size: 129.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for yosoi-0.0.1a12-py3-none-any.whl
Algorithm Hash digest
SHA256 aae22f0694d2c69df39730e44e3eb5b2819805b06cedbb05d7e3571f5c47b9bb
MD5 79db2aa5f819c1725ccb8743dfd1a932
BLAKE2b-256 84c5f05b810c62229ad2f4d462ccaa0834791118d861222e6feed1deda6aa701

See more details on using hashes here.

Provenance

The following attestation bundles were made for yosoi-0.0.1a12-py3-none-any.whl:

Publisher: publish.yaml on CascadingLabs/Yosoi

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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