Skip to main content

Official LangChain integration for the WellMarked API — load any URL as clean Markdown.

Project description

langchain-wellmarked

The official LangChain integration for WellMarked — load any URL as clean Markdown Documents.

pip install langchain-wellmarked

Quick start

Set your API key (get one at wellmarked.io):

export WELLMARKED_API_KEY="wm_..."

Load a single page:

from langchain_wellmarked import WellMarkedLoader

loader = WellMarkedLoader("https://example.com/article")
docs = loader.load()

docs[0].page_content   # clean Markdown
docs[0].metadata       # {"source": ..., "title": ..., "author": ..., "retrieved_at": ...}

Or crawl a whole site BFS-style — one Document per successfully extracted page (Pro plan and above):

loader = WellMarkedLoader("https://docs.example.com", mode="crawl", depth=2)
docs = loader.load()

docs[0].metadata["depth"]   # how far from the root URL this page sits

lazy_load() works too, and the loader passes render_js=True through to the API for JS-heavy pages.

Options

Parameter Default Description
url (required) Page to extract, or root URL to crawl from
api_key env var WellMarked API key; falls back to WELLMARKED_API_KEY
mode "extract" "extract" (single page) or "crawl" (same-site BFS)
depth 1 Crawl depth (mode="crawl" only)
render_js False Render JS-heavy pages with a headless browser (Pro and above)
job_timeout 300.0 Seconds to wait for a crawl job; None waits forever

In crawl mode, pages that fail to extract (timeouts, robots-disallowed, no content) are skipped; only successful pages become Documents.

Related

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

langchain_wellmarked-0.1.0.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

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

langchain_wellmarked-0.1.0-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: langchain_wellmarked-0.1.0.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for langchain_wellmarked-0.1.0.tar.gz
Algorithm Hash digest
SHA256 65055cc1f4477197ece972f68fd7c6f490ba521146c4d04e201848a29e129ff0
MD5 8e8322a04119c76698465681a9c5ce93
BLAKE2b-256 eb0af4668734c3bc680bb873a2a3b66baa522386c46eabaeecf1f18f1dfd1a69

See more details on using hashes here.

Provenance

The following attestation bundles were made for langchain_wellmarked-0.1.0.tar.gz:

Publisher: release.yml on WellMarkedAPI/langchain-wellmarked

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

File details

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

File metadata

File hashes

Hashes for langchain_wellmarked-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c0a3af11202adc2d043337a33723a46e2d66d60df889c9f24de5574fdfb89532
MD5 d7f79db364b6a0ec389f0425eb944b81
BLAKE2b-256 286972325f9bfee562ea8fa0fed26c771dc70a0ef6368ba79bf54fbd796b0384

See more details on using hashes here.

Provenance

The following attestation bundles were made for langchain_wellmarked-0.1.0-py3-none-any.whl:

Publisher: release.yml on WellMarkedAPI/langchain-wellmarked

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