Registry / http-networking / oxylabs

oxylabs

JSON →
library3.0.0pypypi✓ verified 79d ago

Official Python library for Oxylabs Scraper APIs (Web Scraper API, Real-Time Crawls, etc.). Current version 3.0.0, released Apr 2025. Active development with monthly releases.

pip install oxylabs
INSTALL
IMPORT
SIG · OXYLABS
O
oxylabs
http-networkingpythonv3.0.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

AsyncClient
from oxylabs import AsyncClient
from oxylabs import WebScraper
ProxyClient
from oxylabs import ProxyClient
RealtimeClient
from oxylabs import RealtimeClient

Instantiate WebScraper with credentials from environment variables, then call .get() on a URL.

from oxylabs import WebScraper scraper = WebScraper( username=os.environ.get('OXYLABS_USERNAME', ''), password=os.environ.get('OXYLABS_PASSWORD', '') ) response = scraper.get('https://example.com') print(response.text)
Debug
Known issues
breakingv3.0.0 removed synchronous RealTimeCrawl methods; only async available.
fix
Use async/await with RealTimeCrawl. For sync, stick to v2.x.
affects: >=3.0.0
deprecatedDirect credential strings in code are deprecated; use environment variables or config.
fix
Set OXYLABS_USERNAME and OXYLABS_PASSWORD environment variables.
affects: >=3.0.0
gotcha.get() on WebScraper raises OxylabsConnectionError on network failures; not caught by default.
fix
Wrap in try/except: except oxylabs.exceptions.OxylabsConnectionError: ...
affects: all
Upgrade
Version history
3.0.0latest on PyPI · released Mar 9, 2026
Audit
Dependencies
requestsrequiredHTTP library for API calls
pydanticrequiredData validation and settings management
Agent activity
2 hits · last 30 days
node
2
Resources
oxylabs — pip install oxylabs · libregistry