Google Site Index - sitemap.xml example
Triggered on a schedule. Connects Condition, HTTP request, Loop, Schedule, Sort, Split Out, Wait, Xml. Collect list of URLs This part extracts all pages from all sitemaps and sorts by the last modified date lastmod (from newest to oldest) Check URL metadata and update, if: Google returns error (404 error means that this URL was not previously added) Date of article update is after the date of last
Front matter
name: Google Site Index - sitemap.xml example
description: Triggered on a schedule. Connects Condition, HTTP request, Loop, Schedule, Sort, Split Out, Wait, Xml. ## Collect list of URLs This part extracts all pages from all sitemaps and sorts by the last modified date `lastmod` (from newest to oldest) ## Check URL metadata and update, if: * Google returns error (404 error means that this URL was not previously added) * Date of article update is after the date of last request to re-index ## Get sitemap.xml Various CMS systems often have multiple sitemaps for different content (posts, tags, pages etc). Need to fetch all sitemaps first and then extract all
category: Automation
kind: Workflow
software: Condition|HTTP request|Loop|Schedule|Sort|Split Out|Wait|XmlGoogle Site Index - sitemap.xml example
Triggered on a schedule. Connects Condition, HTTP request, Loop, Schedule, Sort, Split Out, Wait, Xml. ## Collect list of URLs
This part extracts all pages from all sitemaps and sorts by the last modified date lastmod (from newest to oldest) ## Check URL metadata and update, if:
- Google returns error (404 error means that this URL was not previously added)
- Date of article update is after the date of last request to re-index ## Get sitemap.xml
Various CMS systems often have multiple sitemaps for different content (posts, tags, pages etc). Need to fetch all sitemaps first and then extract all
Steps
- When clicking "Test workflow" (manualTrigger)
- Split Out (splitOut)
- Check status (httpRequest)
- Loop Over Items (splitInBatches)
- Wait (wait)
- URL Updated (httpRequest)
- Schedule Trigger (scheduleTrigger)
- Sticky Note1 (stickyNote)
- is new? (if)
- Sticky Note2 (stickyNote)
- Sticky Note3 (stickyNote)
- Sticky Note (stickyNote)
- Get content-specific sitemaps (splitOut)
- Convert sitemap to JSON (xml)
- Force urlset.url to array (set)
- Sticky Note4 (stickyNote)
- Assign mandatiry sitemap fields (set)
- convert page data to JSON (xml)
- Get sitemap.xml (httpRequest)
- Get content of each sitemap (httpRequest)
- Sort (sort)
Import
Download the JSON from the GitHub source and import it in n8n (Workflows, Import from file).
Source: https://github.com/Zie619/n8n-workflows/blob/main/Wait/1145_Wait_Splitout_Automation_Webhook.md
Author: Zie619, n8n workflow collection. License: MIT.
Shown here with formatting for the web. Keep the author and license notice when you reuse it.
Related entries
There are more like this in the members library
The n8n workflow library holds 1,814 entries. Members can search all of them by meaning and read every one in full.