256 lines
4.7 KiB
JSON
256 lines
4.7 KiB
JSON
|
|
{
|
||
|
|
"id": 57,
|
||
|
|
"name": "playstation",
|
||
|
|
"active": false,
|
||
|
|
"nodes": [
|
||
|
|
{
|
||
|
|
"parameters": {},
|
||
|
|
"name": "Start",
|
||
|
|
"type": "n8n-nodes-base.start",
|
||
|
|
"typeVersion": 1,
|
||
|
|
"position": [
|
||
|
|
-800,
|
||
|
|
320
|
||
|
|
]
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"parameters": {
|
||
|
|
"docId": "4jpTtZN5vfAkkj9aMvb2iV",
|
||
|
|
"tableId": "Cusa",
|
||
|
|
"additionalOptions": {}
|
||
|
|
},
|
||
|
|
"name": "Grist",
|
||
|
|
"type": "n8n-nodes-base.grist",
|
||
|
|
"typeVersion": 1,
|
||
|
|
"position": [
|
||
|
|
-600,
|
||
|
|
320
|
||
|
|
],
|
||
|
|
"credentials": {
|
||
|
|
"gristApi": {
|
||
|
|
"id": "21",
|
||
|
|
"name": "Grist account"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"parameters": {
|
||
|
|
"values": {
|
||
|
|
"string": [
|
||
|
|
{
|
||
|
|
"name": "url",
|
||
|
|
"value": "=https://serialstation.com/titles/CUSA/{{$json[\"cusa\"]}}"
|
||
|
|
}
|
||
|
|
]
|
||
|
|
},
|
||
|
|
"options": {}
|
||
|
|
},
|
||
|
|
"name": "Set",
|
||
|
|
"type": "n8n-nodes-base.set",
|
||
|
|
"typeVersion": 1,
|
||
|
|
"position": [
|
||
|
|
-380,
|
||
|
|
320
|
||
|
|
]
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"parameters": {
|
||
|
|
"url": "={{$json[\"url\"]}}",
|
||
|
|
"responseFormat": "string",
|
||
|
|
"options": {}
|
||
|
|
},
|
||
|
|
"name": "HTTP Request",
|
||
|
|
"type": "n8n-nodes-base.httpRequest",
|
||
|
|
"typeVersion": 2,
|
||
|
|
"position": [
|
||
|
|
-160,
|
||
|
|
320
|
||
|
|
]
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"parameters": {
|
||
|
|
"extractionValues": {
|
||
|
|
"values": [
|
||
|
|
{
|
||
|
|
"key": "name",
|
||
|
|
"cssSelector": "h1"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"key": "image",
|
||
|
|
"cssSelector": "img.img-fluid",
|
||
|
|
"returnValue": "attribute",
|
||
|
|
"attribute": "src"
|
||
|
|
}
|
||
|
|
]
|
||
|
|
},
|
||
|
|
"options": {}
|
||
|
|
},
|
||
|
|
"name": "HTML Extract",
|
||
|
|
"type": "n8n-nodes-base.htmlExtract",
|
||
|
|
"typeVersion": 1,
|
||
|
|
"position": [
|
||
|
|
60,
|
||
|
|
320
|
||
|
|
]
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"parameters": {
|
||
|
|
"operation": "update",
|
||
|
|
"docId": "4jpTtZN5vfAkkj9aMvb2iV",
|
||
|
|
"tableId": "Disks",
|
||
|
|
"rowId": "={{$node[\"Set\"].json[\"id\"]}}",
|
||
|
|
"fieldsToSend": {
|
||
|
|
"properties": [
|
||
|
|
{
|
||
|
|
"fieldId": "image",
|
||
|
|
"fieldValue": "=data {{$binary.data.mimeType}}"
|
||
|
|
}
|
||
|
|
]
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"name": "Grist1",
|
||
|
|
"type": "n8n-nodes-base.grist",
|
||
|
|
"typeVersion": 1,
|
||
|
|
"position": [
|
||
|
|
740,
|
||
|
|
540
|
||
|
|
],
|
||
|
|
"credentials": {
|
||
|
|
"gristApi": {
|
||
|
|
"id": "21",
|
||
|
|
"name": "Grist account"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"parameters": {
|
||
|
|
"url": "={{$json[\"image\"]}}",
|
||
|
|
"responseFormat": "file",
|
||
|
|
"options": {}
|
||
|
|
},
|
||
|
|
"name": "HTTP Request1",
|
||
|
|
"type": "n8n-nodes-base.httpRequest",
|
||
|
|
"typeVersion": 2,
|
||
|
|
"position": [
|
||
|
|
500,
|
||
|
|
540
|
||
|
|
]
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"parameters": {
|
||
|
|
"conditions": {
|
||
|
|
"string": [
|
||
|
|
{
|
||
|
|
"value1": "={{$json[\"image\"]}}",
|
||
|
|
"operation": "isNotEmpty"
|
||
|
|
}
|
||
|
|
]
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"name": "IF",
|
||
|
|
"type": "n8n-nodes-base.if",
|
||
|
|
"typeVersion": 1,
|
||
|
|
"position": [
|
||
|
|
260,
|
||
|
|
560
|
||
|
|
]
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"connections": {
|
||
|
|
"Start": {
|
||
|
|
"main": [
|
||
|
|
[
|
||
|
|
{
|
||
|
|
"node": "Grist",
|
||
|
|
"type": "main",
|
||
|
|
"index": 0
|
||
|
|
}
|
||
|
|
]
|
||
|
|
]
|
||
|
|
},
|
||
|
|
"Grist": {
|
||
|
|
"main": [
|
||
|
|
[
|
||
|
|
{
|
||
|
|
"node": "Set",
|
||
|
|
"type": "main",
|
||
|
|
"index": 0
|
||
|
|
}
|
||
|
|
]
|
||
|
|
]
|
||
|
|
},
|
||
|
|
"Set": {
|
||
|
|
"main": [
|
||
|
|
[
|
||
|
|
{
|
||
|
|
"node": "HTTP Request",
|
||
|
|
"type": "main",
|
||
|
|
"index": 0
|
||
|
|
}
|
||
|
|
]
|
||
|
|
]
|
||
|
|
},
|
||
|
|
"HTTP Request": {
|
||
|
|
"main": [
|
||
|
|
[
|
||
|
|
{
|
||
|
|
"node": "HTML Extract",
|
||
|
|
"type": "main",
|
||
|
|
"index": 0
|
||
|
|
}
|
||
|
|
]
|
||
|
|
]
|
||
|
|
},
|
||
|
|
"HTML Extract": {
|
||
|
|
"main": [
|
||
|
|
[
|
||
|
|
{
|
||
|
|
"node": "IF",
|
||
|
|
"type": "main",
|
||
|
|
"index": 0
|
||
|
|
}
|
||
|
|
]
|
||
|
|
]
|
||
|
|
},
|
||
|
|
"Grist1": {
|
||
|
|
"main": [
|
||
|
|
[]
|
||
|
|
]
|
||
|
|
},
|
||
|
|
"HTTP Request1": {
|
||
|
|
"main": [
|
||
|
|
[
|
||
|
|
{
|
||
|
|
"node": "Grist1",
|
||
|
|
"type": "main",
|
||
|
|
"index": 0
|
||
|
|
}
|
||
|
|
]
|
||
|
|
]
|
||
|
|
},
|
||
|
|
"IF": {
|
||
|
|
"main": [
|
||
|
|
[
|
||
|
|
{
|
||
|
|
"node": "HTTP Request1",
|
||
|
|
"type": "main",
|
||
|
|
"index": 0
|
||
|
|
}
|
||
|
|
]
|
||
|
|
]
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"createdAt": "2022-07-21T13:08:40.854Z",
|
||
|
|
"updatedAt": "2022-07-21T16:38:37.657Z",
|
||
|
|
"settings": {},
|
||
|
|
"staticData": null,
|
||
|
|
"pinData": {},
|
||
|
|
"tags": [
|
||
|
|
{
|
||
|
|
"id": "2",
|
||
|
|
"name": "my",
|
||
|
|
"createdAt": "2022-05-19T09:37:15.931Z",
|
||
|
|
"updatedAt": "2022-05-19T09:37:15.931Z"
|
||
|
|
}
|
||
|
|
]
|
||
|
|
}
|