{"product_id":"archive-web-pages-as-pdfs-with-n8n-gaffa-google-drive","title":"Archive Web Pages as PDFs with n8n, Gaffa \u0026 Google Drive","description":"\u003ch3\u003eArchive monitored web pages as dated PDFs—only when content changes\u003c\/h3\u003e\n\u003cp\u003eThis n8n workflow checks the web pages you list in Google Sheets every morning, uses \u003cstrong\u003eGaffa\u003c\/strong\u003e to extract the page as \u003cstrong\u003etext\u003c\/strong\u003e and generate a \u003cstrong\u003ePDF\u003c\/strong\u003e, and then uploads a new dated file to \u003cstrong\u003eGoogle Drive only when the page content changes\u003c\/strong\u003e.\u003c\/p\u003e\n\n\u003ch3\u003eWhat this workflow does\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eRuns on a schedule\u003c\/strong\u003e (every morning).\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eReads your Google Sheet\u003c\/strong\u003e from the \u003cem\u003e“Pages”\u003c\/em\u003e tab and keeps only rows that include a \u003cstrong\u003ePage URL\u003c\/strong\u003e.\u003c\/li\u003e\n  \u003cli\u003eFor each URL, \u003cstrong\u003eloads the page in Gaffa\u003c\/strong\u003e (optionally using a provided `Selector`) to generate \u003cstrong\u003epage text\u003c\/strong\u003e and a \u003cstrong\u003ePDF\u003c\/strong\u003e.\u003c\/li\u003e\n  \u003cli\u003eIf the page can’t be read or no text is returned, it writes an \u003cstrong\u003eerror status\u003c\/strong\u003e and updates the \u003cstrong\u003eLast checked\u003c\/strong\u003e date back to the same row.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eHashes the extracted page text\u003c\/strong\u003e and compares it with the row’s stored \u003cstrong\u003eLast hash\u003c\/strong\u003e.\u003c\/li\u003e\n  \u003cli\u003eIf the hash changed:\n    \u003cul\u003e\n      \u003cli\u003eDownloads the generated PDF and \u003cstrong\u003euploads it to a target Google Drive folder\u003c\/strong\u003e with a \u003cstrong\u003edated filename\u003c\/strong\u003e.\u003c\/li\u003e\n      \u003cli\u003eUpdates \u003cstrong\u003eLast hash\u003c\/strong\u003e, \u003cstrong\u003eLast changed\u003c\/strong\u003e, \u003cstrong\u003eLast PDF\u003c\/strong\u003e, \u003cstrong\u003eLast checked\u003c\/strong\u003e, and \u003cstrong\u003eStatus\u003c\/strong\u003e in Google Sheets.\u003c\/li\u003e\n    \u003c\/ul\u003e\n  \u003c\/li\u003e\n  \u003cli\u003eIf the hash did not change, it updates \u003cstrong\u003eLast checked\u003c\/strong\u003e and sets \u003cstrong\u003eStatus\u003c\/strong\u003e to \u003cstrong\u003eno change\u003c\/strong\u003e.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eUse cases\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003eArchive daily snapshots of marketing pages, release notes, or policy pages as PDFs for auditability.\u003c\/li\u003e\n  \u003cli\u003eMonitor competitor or vendor landing pages and store evidence only when content changes.\u003c\/li\u003e\n  \u003cli\u003eTrack documentation updates across multiple URLs with per-row selectors.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTechnical details\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eGaffa\u003c\/strong\u003e via the community node \u003ccode\u003e@gaffa-dev\/n8n-nodes-gaffa\u003c\/code\u003e (API key from gaffa.dev).\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eGoogle Sheets\u003c\/strong\u003e and \u003cstrong\u003eGoogle Drive\u003c\/strong\u003e credentials in n8n.\u003c\/li\u003e\n  \u003cli\u003eCore n8n logic using nodes such as \u003cstrong\u003eif\u003c\/strong\u003e, \u003cstrong\u003eset\u003c\/strong\u003e, \u003cstrong\u003efilter\u003c\/strong\u003e, and \u003cstrong\u003esticky note\u003c\/strong\u003e, plus \u003cstrong\u003eHTTP Request\u003c\/strong\u003e and \u003cstrong\u003eGoogle Drive\u003c\/strong\u003e for PDF upload.\u003c\/li\u003e\n\u003c\/ul\u003e","brand":"N8N Commerce","offers":[{"title":"Default Title","offer_id":46232405967027,"sku":"N8N-21056","price":6.99,"currency_code":"GBP","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0749\/6279\/6723\/files\/97KuFeqP2gccVGeHnQMUo_qcie6xk0.png?v=1792141850","url":"https:\/\/buyflowscripts.com\/products\/archive-web-pages-as-pdfs-with-n8n-gaffa-google-drive","provider":"N8N Commerce","version":"1.0","type":"link"}