Processors are plugins which extract data from fetched pages. Processors must be registered within the system, making them available to Crawls.
List Processors.
https://github.com/tiredpixel/isoxya-api/blob/latest/bin/isoxya-api-list-processor
Response parameters are as for /processor/:processor_id GET.
HTTP/1.1 200 OK
content-type: application/json
link: </processor>; rel="first", </processor?_next=2021-12-16T14:20:16.32375Z>; rel="next", </processor?_prev=2021-12-16T14:20:16.32375Z>; rel="prev"
[
{
"channels": 1,
"href": "/processor/7135e6c2-3026-44bf-abcc-c64af3efce73",
"tag": "crawler-html",
"url": "http://isoxya-plugin-crawler-html.localhost/data"
}
]
Create a Processor.
https://github.com/tiredpixel/isoxya-api/blob/latest/bin/isoxya-api-create-processor
Name | Edition | Type | Description |
---|---|---|---|
channels |
Pro | number? | channels, used for scaling Processors |
tag |
string | tag, used for conditional Streamer logic | |
url |
string | plugin endpoint URL (absolute) |
Response parameters are as for /processor/:processor_id GET.
POST /processor HTTP/1.1
content-type: application/json
{
"channels": null,
"tag": "crawler-html",
"url": "http://isoxya-plugin-crawler-html.localhost/data"
}
HTTP/1.1 201 Created
content-type: application/json
location: /processor/7135e6c2-3026-44bf-abcc-c64af3efce73
{
"channels": 1,
"href": "/processor/7135e6c2-3026-44bf-abcc-c64af3efce73",
"tag": "crawler-html",
"url": "http://isoxya-plugin-crawler-html.localhost/data"
}
Delete a Processor.
https://github.com/tiredpixel/isoxya-api/blob/latest/bin/isoxya-api-delete
HTTP/1.1 204 No Content
Read a Processor.
https://github.com/tiredpixel/isoxya-api/blob/latest/bin/isoxya-api-read
Name | Edition | Type | Description |
---|---|---|---|
channels |
Pro | number | channels, used for scaling Processors |
href |
string | Href | |
tag |
string | tag, used for conditional Streamer logic | |
url |
string | plugin endpoint URL (absolute) |
HTTP/1.1 200 OK
content-type: application/json
{
"channels": 1,
"href": "/processor/7135e6c2-3026-44bf-abcc-c64af3efce73",
"tag": "crawler-html",
"url": "http://isoxya-plugin-crawler-html.localhost/data"
}