Files
n8n/flows/57.json

265 lines
5.2 KiB
JSON
Executable File

{
"createdAt": "2022-07-21T13:08:40.854Z",
"updatedAt": "2022-07-21T16:38:37.657Z",
"id": 57,
"name": "playstation",
"active": false,
"nodes": [
{
"parameters": {},
"name": "Start",
"type": "n8n-nodes-base.start",
"typeVersion": 1,
"position": [
-800,
320
],
"id": "82b271e3-1225-413f-850d-5fff3c09c191"
},
{
"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"
}
},
"id": "b16c7215-1dcd-48f1-8783-a96bea59a134"
},
{
"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
],
"id": "9585539c-4eee-4743-b5a5-723bf016db2a"
},
{
"parameters": {
"url": "={{$json[\"url\"]}}",
"responseFormat": "string",
"options": {}
},
"name": "HTTP Request",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 2,
"position": [
-160,
320
],
"id": "b0539484-2224-4450-adfd-52e6f31505d9"
},
{
"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
],
"id": "146001bc-63ba-4949-b400-948a7e48472f"
},
{
"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"
}
},
"id": "3e01c7c6-6571-4273-aa5f-7391a32e1501"
},
{
"parameters": {
"url": "={{$json[\"image\"]}}",
"responseFormat": "file",
"options": {}
},
"name": "HTTP Request1",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 2,
"position": [
500,
540
],
"id": "6352a737-b4b2-46fd-b1dd-cbe671b5e0c9"
},
{
"parameters": {
"conditions": {
"string": [
{
"value1": "={{$json[\"image\"]}}",
"operation": "isNotEmpty"
}
]
}
},
"name": "IF",
"type": "n8n-nodes-base.if",
"typeVersion": 1,
"position": [
260,
560
],
"id": "cee99068-165e-4323-8901-559c9854fe59"
}
],
"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
}
]
]
}
},
"settings": {},
"staticData": null,
"pinData": {},
"tags": [
{
"createdAt": "2022-05-19T09:37:15.931Z",
"updatedAt": "2022-05-19T09:37:15.931Z",
"id": "2",
"name": "my"
}
],
"hash": "f617941cd0b5d8fa8e0c32196b323fb1"
}