Automated Facebook group scraper: posts, comments, and sub-comments to Supabase
UnknownWhat this workflow does
This workflow has 12 nodes and runs when someone submits an n8n form (“URL”). Along the way it connects Supabase and Apify (community).
How it runs
Trigger: When someone submits an n8n form (“URL”).
- Edit Fields (Edit Fields (Set)): sets 2 fields: url, post
- Run an Actor (Apify): uses Apify
- Get dataset items (Apify): work with datasets
- Add A Post (Supabase): uses Supabase
- ScrapeComments (Apify): uses Apify
- Get dataset items (Apify): work with datasets
- Add A Comment (Supabase): uses Supabase
- If: checks a condition and branches into true / false
- Edit Fields (Edit Fields (Set)): sets 1 field: comments
- Split Out: splits a list into separate items
…plus 1 more step. See the full node list below.
Services it uses
Before you upgrade to n8n 3.0
We can't fully verify this one: it relies on 1 community package, and n8n 3.0 turns unverified community packages off by default (N8N_UNVERIFIED_PACKAGES_ENABLED=false).
- Check that @apify/n8n-nodes-apify is verified or supports 3.0 (used in Run an Actor, Get dataset items, Get dataset items1).
Nodes used (6)
- Apify
@apify/n8n-nodes-apify.apify - Supabase
n8n-nodes-base.supabase - Edit Fields (Set)
n8n-nodes-base.set - If
n8n-nodes-base.if - Split Out
n8n-nodes-base.splitOut - n8n Form Trigger
n8n-nodes-base.formTrigger
From the author
This n8n template demonstrates how to automate the scraping of posts, comments, and sub-comments from a Facebook Group and store the data in a Supabase database. Use cases are many: Gather user engagement data for analysis, archive posts and comments for…