Add WellMarkedLoader document loader#1
Merged
Conversation
Official LangChain integration for the WellMarked API, wrapping the wellmarked Python SDK. WellMarkedLoader supports extract mode (one URL, one Document) and crawl mode (same-site BFS, one Document per successfully extracted page, blocking on the crawl job). Markdown maps to page_content; title/author/date/retrieved_at/depth map to metadata. Includes hatchling packaging mirroring the Python SDK conventions, unit tests with a faked SDK client, and README docs. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
CI runs pytest across Python 3.9-3.14 on pushes to main and PRs. Release publishes to PyPI via OIDC Trusted Publishing on a GitHub Release, mirroring the Python-SDK workflows. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds
WellMarkedLoader, the official LangChain document loader for the WellMarked API. It wraps thewellmarkedPython SDK — no duplicated HTTP logic.Documentwith clean Markdown aspage_contentDocumentper successfully extracted page (failed pages skipped), blocking on the crawl job up tojob_timeoutsource,title,author,date,retrieved_at(ISO string), anddepthfor crawled pageslazy_load()is truly lazy;render_jspasses through to the APIPackaging
Hatchling build mirroring the Python SDK's pyproject conventions. Depends on
langchain-core>=0.3,<2.0andwellmarked>=1.1,<2.0.Testing
5 unit tests with a faked SDK client (no network): both modes,
render_jspassthrough, failed-page skipping, invalid mode, laziness. All pass, and the package installs cleanly via pip (exercising the hatchling build).🤖 Generated with Claude Code