Scrape
Start Scrape Job
Starts a scrape job for a given URL.
Method: client.scrape.start(params: StartScrapeJobParams): StartScrapeJobResponse
Endpoint: POST /api/scrape
Parameters:
StartScrapeJobParams
:url: string
- URL to scrapesession_options?:
CreateSessionParams
scrape_options?:
ScrapeOptions
Response: StartScrapeJobResponse
Example:
Get Scrape Job
Retrieves details of a specific scrape job.
Method: client.scrape.get(id: str): ScrapeJobResponse
Endpoint: GET /api/scrape/{id}
Parameters:
id: string
- Scrape job ID
Response: ScrapeJobResponse
Example:
Start Scrape Job and Wait
Start a scrape job and wait for it to complete
Method: client.scrape.start_and_wait(params: StartScrapeJobParams): ScrapeJobResponse
Parameters:
StartScrapeJobParams
:url: string
- URL to scrapesession_options?:
CreateSessionParams
scrape_options?:
ScrapeOptions
Response: ScrapeJobResponse
Example:
Types
ScrapeFormat
ScrapeJobStatus
ScrapeOptions
StartScrapeJobResponse
ScrapeJobData
ScrapeJobResponse
Last updated