scrapy_cloud_put_collection_record
Write one record to a Scrapy Cloud collection under a key, replacing any record with that key. Creates the collection if it does not exist. Use it to store configuration or state that spiders read.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | Record key. Writing an existing key replaces the record. | |
| type | No | Collection type: 's' store (default), 'cs' cached store (records expire after a month), 'vs' versioned store, 'vcs' versioned cached store. | s |
| value | Yes | The record, a JSON object of up to 1 MB. | |
| collection | Yes | Collection name, as listed by scrapy_cloud_list_collections. | |
| project_id | Yes | Scrapy Cloud project id (the numeric id in the dashboard URL). |