πŸ“ˆ Automated gold price threshold alerts via LINE with web scraping

⚑ 1,279 views Β· πŸ“ˆ Crypto Trading & Stock Market

πŸ’‘ Pro Tip β€” HTTP Request scraping tends to break when sites update their markup. If you’re scraping a major platform, check if ScraperNode covers it β€” it has maintained scrapers for LinkedIn, Instagram, TikTok, YouTube, and 20+ other platforms that return structured data.

View All Scrapers

Description

Gold Price Alert

This workflow template, β€œGold Price Alert,” is designed to monitor gold prices at regular intervals and send real-time notifications via LINE when the price exceeds a specified threshold. By leveraging the power of web scraping and automated alerts, this template ensures you stay informed about significant changes in gold prices without manual intervention.

Whether you’re an investor, trader, or simply someone interested in tracking gold prices, this workflow provides a reliable and customizable solution for staying updated.

Who Is This Template For?

What Problem Does This Workflow Solve?

Tracking gold prices manually can be time-consuming and prone to oversight, especially if you’re monitoring multiple sources or need alerts for specific thresholds.

This workflow solves that problem by:

What This Workflow Does

  1. Scheduled Trigger: The workflow is triggered every 6 hours to check the current gold price.
  2. Fetch Webpage Content: It retrieves the HTML content of the webpage displaying the latest gold prices.
  3. Extract Price Data: Using CSS selectors, the workflow extracts the relevant price data (e.g., buying price) from the HTML content.
  4. Filter Prices: The extracted price is converted into a numeric format and compared against a predefined threshold (e.g., 52,300 THB). Alerts are only sent if the price exceeds this value.
  5. Send Notification via LINE: If the condition is met, the workflow sends a notification to your LINE account with the current gold price.

Setup Guide

Pre-Requisites

Step-by-Step Setup

  1. Configure the Schedule Trigger: Set the interval to 6 hours or adjust it based on your preference.
  2. Set Up Webpage Fetching: Update the URL in the HTTP Request node to point to the webpage containing the gold price data.
  3. Extract Price Data: Use the HTML Extractor node to specify the CSS selector for the price element (e.g., #DetailPlace_uc_goldprices1_lblBLBuy).
  4. Set Price Threshold: Modify the threshold value in the If node to match your desired alert level (e.g., 52,300 THB).
  5. Configure LINE Push API: Replace the placeholder to field in the Send Line Message node with your LINE user ID to ensure notifications are sent to the correct account.

Test the Workflow:

How to Customize This Workflow to Your Needs

Why Use This Template?

πŸ”— Nodes Used

HTTP Request, Schedule Trigger

πŸ“₯ Import

Download workflow.json and import into n8n: Workflow menu β†’ Import from File

πŸ“– Importing guide Β· πŸ”‘ Credential setup