API Reference
Classes
Core classes
- Amazon
-
An
amazonjob, which scrapes an Amazon URL. - AmazonBestsellers
-
An
amazon_bestsellersjob, which scrapes the Best Sellers page of one browse node. - AmazonPricing
-
An
amazon_pricingjob, which scrapes the offers of one product. - AmazonProduct
-
An
amazon_productjob, which scrapes one product page. - AmazonSearch
-
An
amazon_searchjob, which scrapes the results of one search. - AmazonSellers
-
An
amazon_sellersjob, which scrapes one seller’s page. - Payload
-
One job’s body, for any source.
- Universal
-
A
universaljob, which scrapes any URL. - AsyncRun
-
The jobs of one
AsyncSession.streamcall, each as it finishes. - AsyncSession
-
Submit payloads and fetch their jobs inside an
async withblock, on asyncio or trio. - Run
-
The jobs of one run, each as it finishes.
- Session
-
Submit payloads and fetch their jobs from sync code, inside a
withblock.
Dataclasses
Data-holding classes
- DryRun
-
The jobs a run would submit.
- Job
-
One job and its results.
- Progress
-
The number of a run’s payloads in each state, at one moment.
- Rejection
-
The error that the API returned for a payload instead of a job, so nothing billed.
- Result
-
One page of a job’s results, in one output type.
- Upload
-
A job’s Cloud Storage upload.
Exceptions
Exception classes
- IncompleteRunError
-
The error a run raises after its last job, when a payload ended with no done or faulted job, an upload failed, or a failure stopped the run.
- OxylabsError
-
One error response from the API, or a network failure that lasted past the retry limit.
Functions
Public functions
- dry_run()
-
List the jobs that a run of
payloadswould submit, and the most results they can bill.
Constants
Module-level constants and data
- SOURCES
-
The source models that a billed run has checked; every other source runs through
Payload. - BrowserInstruction
-
One item of
browser_instructions, whosetypenames one of the 7 documented instructions. - ParsingFunction
-
One item of a
_fnspipeline, whose_fnnames one of the 20 documented functions. - ParsingInstructions
-
One scope of parsing instructions, which holds a
_fnspipeline,_on_error, and_itemsand fields that are scopes of their own.