Schedule a saved scrape
schedule_extractionCreate a recurring schedule (hourly, daily or weekly) that re-runs one of the user's saved scrapes and delivers each run to email, a Google Sheet or a webhook. This creates a recurring job in the user's Lection account and may use cloud credits: confirm the saved scrape, cadence and destination with the user before calling. Respects the user's plan limits and returns a clear message if one is reached.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Schedule name, at least 3 characters. | |
| cadence | Yes | How often to run. | |
| weekday | No | 0=Sunday .. 6=Saturday, for weekly. Default 1 (Monday). | |
| timezone | No | IANA timezone, e.g. "America/Chicago". Default UTC. | |
| timeOfDay | No | HH:MM (24h) in the given timezone, for daily/weekly. Default 09:00. | |
| webhookUrl | No | HTTPS webhook URL (destination webhook). | |
| destination | No | Where each run is delivered. google_sheet needs the user to have connected Google Sheets in Lection; webhook needs webhookUrl. | |
| savedScrapeId | Yes | Id of an existing saved scrape in the user's Lection account (from list_my_saved_scrapes). The schedule re-runs that scrape. | |
| spreadsheetUrl | No | Google Sheet URL (destination google_sheet). |