How I automate web scraping with n8n, step by step
A practical structure for scheduled scraping in n8n: a separate scraper service, a chained workflow, storage, media downloads and completion logging.
A scraper that you have to run by hand is a chore. A scraper that runs itself every week and tells you when it is done is a system. This is the structure I use for scheduled scraping with n8n, based on a property-listings pipeline that collects listings, sitemaps, articles and media from two large portals.
1. Keep the scraping outside n8n
The scraping code lives in its own small service on a server, with one endpoint per job — for example "scrape listings", "scrape sitemaps", "download media". n8n then calls those endpoints. This keeps heavy browser work out of n8n and lets each scraper be fixed or updated on its own.
2. Trigger on a schedule
A Schedule Trigger node starts the run — weekly, daily or hourly, depending on how fast the source changes.
3. Chain the steps
Each step is an HTTP Request node, and the next one only runs after the previous one succeeds: listings, then the second portal, then sitemaps, then articles, then media. If one step fails, the run stops there instead of saving half-finished data.
4. Store clean records
Results are pushed to a database (MongoDB in this build) or a Google Sheet, de-duplicated so re-runs update records instead of creating copies.
5. Log completion
The final node records that the run finished, with counts. A failure alert on the workflow means you hear about problems the same day, not weeks later.
Things that keep it reliable
- Respect the site — sensible delays and rate limits, and check the site's terms.
- Retries on network errors, with a cap.
- Never expose server addresses in screenshots or shared workflows.
- Watch for layout changes — a sudden drop to zero results usually means the site changed, not that the data disappeared.
If you are copying data from websites by hand, it can almost always run on its own. Tell me the sites and the fields you need, and I will tell you what is possible.