{"createdAt":"2024-07-07T15:26:53.461Z","updatedAt":"2024-07-16T20:07:06.640Z","id":"iGw2rg9kxx5SmGQw","name":"Scrap web site copy - sub","active":false,"nodes":[{"parameters":{"url":"={{ $json.URL }}","options":{}},"id":"9584e149-033a-4f6b-8122-30ee6f5405ca","name":"HTTP Request","type":"n8n-nodes-base.httpRequest","typeVersion":4.2,"position":[-720,-160]},{"parameters":{"operation":"extractHtmlContent","sourceData":"binary","extractionValues":{"values":[{"key":"data","cssSelector":"body","returnValue":"html"}]},"options":{"cleanUpText":false}},"id":"3a504df0-ada0-4d7f-b75a-a246f0c1f381","name":"HTML","type":"n8n-nodes-base.html","typeVersion":1.2,"position":[-440,-160]},{"parameters":{"operation":"toJson","options":{}},"id":"99dfa97b-db80-46a6-aa04-7758fe35183b","name":"Convert to File","type":"n8n-nodes-base.convertToFile","typeVersion":1.1,"position":[-580,-160]},{"parameters":{"operation":"extractHtmlContent","extractionValues":{"values":[{"key":"key","cssSelector":"p","returnArray":true}]},"options":{}},"id":"8542f76a-4bf4-4a1b-b137-fdb3fc929d82","name":"HTML1","type":"n8n-nodes-base.html","typeVersion":1.2,"position":[-280,40]},{"parameters":{"operation":"extractHtmlContent","extractionValues":{"values":[{"key":"key","cssSelector":"a","returnValue":"attribute","attribute":"href","returnArray":true}]},"options":{"cleanUpText":false}},"id":"08fe30eb-ea27-49c1-8ce1-a3a2100c360c","name":"HTML2","type":"n8n-nodes-base.html","typeVersion":1.2,"position":[-280,-160]},{"parameters":{"fieldToSplitOut":"key","options":{}},"id":"eeb61f65-43e6-4718-b05d-ebfea297c5bb","name":"Split Out","type":"n8n-nodes-base.splitOut","typeVersion":1,"position":[-140,-160]},{"parameters":{"options":{}},"id":"ca7ad3a0-8795-40fb-89e9-da65fd2bf0ca","name":"Loop Over Items","type":"n8n-nodes-base.splitInBatches","typeVersion":3,"position":[0,-160]},{"parameters":{"assignments":{"assignments":[{"id":"516f8fd8-cd1c-4cd1-aae6-fc5e1725f33a","name":"key","value":"=/ {{ $json.URL }}","type":"string"}]},"options":{}},"id":"a8d4f11f-8e2e-4794-861c-3ce01f0c6ffd","name":"Edit Fields","type":"n8n-nodes-base.set","typeVersion":3.3,"position":[-140,-340]},{"parameters":{},"id":"98499ab0-b15d-408a-878a-00084d91aff5","name":"Execute Workflow Trigger","type":"n8n-nodes-base.executeWorkflowTrigger","typeVersion":1,"position":[-880,-180]},{"parameters":{"operation":"extractHtmlContent","dataPropertyName":"key","extractionValues":{"values":[{"key":"key","cssSelector":":root","returnArray":true}]},"options":{}},"id":"81f838a1-2457-4947-93e5-881b9c553cd6","name":"HTML3","type":"n8n-nodes-base.html","typeVersion":1.2,"position":[-140,40]},{"parameters":{"operation":"create","docId":"pfyRAyDpaei1RyyPQYUqLV","tableId":"Scrapping","fieldsToSend":{"properties":[{"fieldId":"Url","fieldValue":"={{ $node['Execute Workflow Trigger'].json[\"URL\"] }}"},{"fieldId":"Contenu","fieldValue":"='{{ $json.key }}'"},{"fieldId":"Etat","fieldValue":"En attente"}]}},"id":"4ce68267-83e4-4aec-8a25-0cb88fd8fea2","name":"Grist","type":"n8n-nodes-base.grist","typeVersion":1,"position":[140,40],"credentials":{"gristApi":{"id":"FP4qhcxgUb7jbXcL","name":"Grist account"}}},{"parameters":{"fieldsToAggregate":{"fieldToAggregate":[{"fieldToAggregate":"key"}]},"options":{"mergeLists":true}},"id":"5c7f9abc-fbe9-4a6a-9666-a2cb28a11da8","name":"Aggregate","type":"n8n-nodes-base.aggregate","typeVersion":1,"position":[0,40]},{"parameters":{"assignments":{"assignments":[{"id":"d50d357d-d043-4ce9-ace8-efb0dbeb5ed1","name":"URL","value":"={{ $json.key }}","type":"string"}]},"options":{}},"id":"7abbe154-9985-46fa-935f-4e3175cd291e","name":"Edit Fields1","type":"n8n-nodes-base.set","typeVersion":3.3,"position":[240,-160]}],"connections":{"HTTP Request":{"main":[[{"node":"Convert to File","type":"main","index":0}]]},"HTML":{"main":[[{"node":"HTML2","type":"main","index":0},{"node":"HTML1","type":"main","index":0}]]},"Convert to File":{"main":[[{"node":"HTML","type":"main","index":0}]]},"HTML2":{"main":[[{"node":"Split Out","type":"main","index":0}]]},"Split Out":{"main":[[{"node":"Loop Over Items","type":"main","index":0}]]},"Edit Fields":{"main":[[{"node":"Loop Over Items","type":"main","index":0}]]},"Execute Workflow Trigger":{"main":[[{"node":"HTTP Request","type":"main","index":0},{"node":"Edit Fields","type":"main","index":0}]]},"HTML1":{"main":[[{"node":"HTML3","type":"main","index":0}]]},"HTML3":{"main":[[{"node":"Aggregate","type":"main","index":0}]]},"Aggregate":{"main":[[{"node":"Grist","type":"main","index":0}]]},"Loop Over Items":{"main":[[],[{"node":"Edit Fields1","type":"main","index":0}]]},"Edit Fields1":{"main":[[]]}},"settings":{"executionOrder":"v1"},"staticData":null,"meta":{"templateCredsSetupCompleted":true},"pinData":{},"versionId":"160df697-1618-4e9b-b8bc-2923a253da30","triggerCount":0,"tags":[]}