Repository navigation
Releases
Releases · oxylabs/langchain-oxylabs
v0.4.2
Fixed
- An
OXYLABS_WEB_API_KEYwith surrounding whitespace (for example a trailing newline) now works; the whitespace is stripped. A key with whitespace inside it is rejected, and no error message or validation error includes the key. OxylabsWebScrapereturns extracted JSON only whenjson_promptis set, so a page scrape always returns the page.
Full changelog: v0.4.1...v0.4.2
v0.4.1
Fixed
- A failed Web Scraper API request (bad credentials, access denied, rate limit, timeout) now raises
OxylabsAPIErrorwith the cause, instead of returning an empty result or'NoneType' object is not subscriptable. The search tools return the message to the agent.
Full changelog: v0.4.0...v0.4.1
v0.4.0
Adds the Oxylabs Web API, authenticated with one API key (OXYLABS_WEB_API_KEY). The existing Web Scraper API classes are unchanged.
New
OxylabsWebSearch: live web search with an optional country (location="DE"). Returns titles, URLs and snippets.OxylabsWebScrape: reads a URL as Markdown (default) or HTML, including JavaScript-heavy and bot-protected pages. Setjson_promptto get named fields as JSON instead.OxylabsWebLoader: loads a list of URLs as LangChainDocuments for RAG.OxylabsWebAPIWrapper: the sync and async client behind them. It retries temporary errors and waits for slow scrapes.
from langchain_oxylabs import OxylabsWebScrape, OxylabsWebSearch
tools = [OxylabsWebSearch(), OxylabsWebScrape()]See the README for setup and options.
Other changes
- httpx is now a direct dependency.
- Releases are now published to PyPI from GitHub Actions.