Automatic Reddit Image Scraper & Google Drive Deduplication - n8n Workflow

Use this powerful n8n workflow to automatically scrape new images from specified Reddit subreddits. It checks Google Drive for duplicates before downloading, saving bandwidth, and sends Telegram notifications.

Workflow Preview

Ready to automate?

Download this n8n workflow template and start using it instantly.

Who is this best for?

Content creators and social media managers looking to aggregate content automatically.
Users needing robust file synchronization and duplicate prevention between cloud services.
Developers exploring advanced scheduling and HTTP request handling within an n8n workflow.
Anyone looking for practical n8n templates integrating Reddit, Google Drive, and Telegram.

Overview

This comprehensive n8n workflow provides a robust solution for content archival, specifically targeting high-volume image posts from Reddit. The core challenge in such automation is preventing the repeated downloading and storing of the same files. This n8n workflow solves this by utilizing Google Drive's search functionality as a de-duplication layer.

The process begins with a scheduled n8n trigger, pulls a random selection of new posts from your chosen subreddits, and then iterates through each one. A critical part of this n8n node chain is the check against your existing Google Drive folder. Only if a file name is not found is the image downloaded via an HTTP Request n8n node and subsequently uploaded. This highly efficient structure minimizes API calls and ensures your storage remains clean. Finally, a Telegram notification ensures you stay updated on the results of every scheduled run.

How it Works

The entire process is initiated by the Cron n8n trigger, ensuring the workflow runs on a defined schedule.


  1. Configuration & Selection: The Settings n8n node defines critical variables like the Telegram Chat ID and a list of subreddits (subreddits_array). A Code n8n node then randomly selects one subreddit from this list for the current execution.

  2. Data Acquisition: The Get Reddit posts n8n node fetches the latest posts from the selected subreddit.

  3. Initial Filtering: The Keep only images n8n node filters the results, discarding non-image posts and keeping only those hosted on the specified domain (i.redd.it).

  4. Iteration and Delay: The Loop Posts n8n node starts the iteration. A Wait between requests n8n node introduces a short delay to respect API rate limits before processing the item.

  5. Duplicate Check: For each image, the filename is extracted. The Search image in drive n8n node queries the target Google Drive folder using the extracted filename.

  6. Conditional Download: The Is a new image? n8n node uses an If condition to check if the file already exists in Drive. If the Google Drive n8n node returned no ID (meaning it's new), the image is downloaded using the HTTP Request n8n node.

  7. Upload & Tracking: The new image is uploaded to Google Drive via the Upload image to drive n8n node. Items that successfully pass through this step are marked as new.

  8. Final Report: After the loop completes, the Aggregate new images n8n node gathers all successfully downloaded files. The final If n8n node (Have new images?) determines whether to send a success notification (Notify on Telegram) detailing the number of downloads, or a failure message (Send no new images text). This completes the scheduled n8n workflow execution.

Installation Guide

To deploy this powerful n8n workflow, follow these steps:


  1. Import: Copy the provided JSON code and import it directly into your n8n instance.

  2. Credentials Setup: This n8n workflow requires three distinct credentials:

Reddit OAuth2 API: Set up a 'script' type application on Reddit to obtain a Client ID and Secret.
Google Drive OAuth2: Ensure the Google Drive API is enabled in your Google Cloud Console and authorize n8n to access the necessary scopes for file uploads.
Telegram Bot API: Create a bot via @BotFather and obtain the bot token for the Telegram n8n node.

  1. Configuration Node: Open the Settings n8n node and update the required values:

Set telegramchatid to your specific Telegram chat identifier.
Update subreddits_array with the list of Reddit communities you wish to monitor (e.g., ['funny', 'memes']).
Configure the Cron n8n trigger frequency to your desired schedule.

  1. Folder ID: In the Search image in drive and Upload image to drive n8n nodes, ensure the correct Google Drive folder ID is set for your archive location.

  2. Activate: Activate the n8n workflow to begin monitoring.

Node Details

Cron Trigger: This is the initial n8n trigger, responsible for scheduling the automated execution of the entire n8n workflow.
Settings (Set Node): Central configuration n8n node where key variables (Telegram ID, subreddit list, and request delay) are stored, simplifying future modifications.
Get Reddit posts (Reddit Node): Uses the Reddit n8n node integration to retrieve posts, configured to fetch from the 'new' category of the dynamically selected subreddit.
Keep only images (Filter Node): A specialized filter n8n node that ensures only posts containing images hosted on the i.redd.it domain proceed in the workflow.
Search image in drive (Google Drive Node): Executes a search operation in Google Drive using the extracted image filename. This is the core n8n node for duplicate detection.
Is a new image? (If Node): Conditional n8n node that routes the execution path. If the Search image in drive n8n node returned no file ID, the image is considered new, and the workflow proceeds to download.
Download image (HTTP Request Node): Performs the actual file download using the image URL. Configured to save the response directly as a file property.
Upload image to drive (Google Drive Node): Handles the file transfer, utilizing the file property generated by the previous n8n node to upload the image to the specified Google Drive folder.


  • Notify on Telegram (Telegram Node): The final action n8n node, sending alerts to the user about the completion status and the total count of new images downloaded.

Related n8n Workflows

Free

Nodes: 13 Nodes
Updated: December 26 2025
View all
Created by

Brazilian Full Stack Developer passionate about making automation accessible to everyone. I create free n8n workflows that solve real problems - from NASA space content to marketing automation. Proving that powerful automation doesn't need to be expensive or complicated. Teaching through templates, one node at a time.

Featured*