n8n-sauvegarde/Scrap web site copy - sub.json

1 line
12 KiB
JSON
Raw Normal View History

2024-07-17 17:56:52 +02:00
{"createdAt":"2024-07-07T15:26:53.461Z","updatedAt":"2024-07-17T13:31:58.058Z","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":[-1120,-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":[-840,-160]},{"parameters":{"operation":"toJson","options":{}},"id":"99dfa97b-db80-46a6-aa04-7758fe35183b","name":"Convert to File","type":"n8n-nodes-base.convertToFile","typeVersion":1.1,"position":[-980,-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":[-700,40]},{"parameters":{"operation":"extractHtmlContent","extractionValues":{"values":[{"key":"key","cssSelector":"a","returnValue":"attribute","attribute":"href","returnArray":true}]},"options":{"trimValues":true,"cleanUpText":true}},"id":"08fe30eb-ea27-49c1-8ce1-a3a2100c360c","name":"HTML2","type":"n8n-nodes-base.html","typeVersion":1.2,"position":[-700,-160]},{"parameters":{"fieldToSplitOut":"key","options":{}},"id":"eeb61f65-43e6-4718-b05d-ebfea297c5bb","name":"Split Out","type":"n8n-nodes-base.splitOut","typeVersion":1,"position":[-560,-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":[-560,-340]},{"parameters":{},"id":"98499ab0-b15d-408a-878a-00084d91aff5","name":"Execute Workflow Trigger","type":"n8n-nodes-base.executeWorkflowTrigger","typeVersion":1,"position":[-1540,-160]},{"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":[-560,40]},{"parameters":{"operation":"create","docId":"pfyRAyDpaei1RyyPQYUqLV","tableId":"Scrapping","fieldsToSend":{"properties":[{"fieldId":"Url","fieldValue":"={{ $node['Execute Workflow Trigger'].json[\"URL\"] }}"},{"fieldId":"Contenu","fieldValue":"='{{ $node['Aggregate'].json['key'] }}'"},{"fieldId":"Etat","fieldValue":"En attente"}]}},"id":"4ce68267-83e4-4aec-8a25-0cb88fd8fea2","name":"Grist","type":"n8n-nodes-base.grist","typeVersion":1,"position":[180,120],"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":[-420,40]},{"parameters":{},"id":"40f2494d-1b24-4e86-9cff-b520bbb67737","name":"Merge","type":"n8n-nodes-base.merge","typeVersion":2.1,"position":[-420,-260]},{"parameters":{},"id":"810d685d-2d23-4310-9f2b-419561d4e047","name":"Remove Duplicates","type":"n8n-nodes-base.removeDuplicates","typeVersion":1.1,"position":[0,-260]},{"parameters":{"assignments":{"assignments":[{"id":"bdc8c167-cf54-4c4d-a663-b3c8b6fa6f45","name":"URL","value":"={{ $json.key.replaceAll('\\\\\"','').replace(/#(.*)$/,'') }}","type":"string"}]},"options":{}},"id":"045c7155-b9b2-4e15-b0c2-2a9df81405a7","name":"Edit Fields2","type":"n8n-nodes-base.set","typeVersion":3.3,"position":[-280,-260]},{"parameters":{"conditions":{"options":{"caseSensitive":true,"leftValue":"","typeValidation":"strict"},"conditions":[{"id":"ef2e7472-f243-4324-b119-90968b0c58c6","le