HtmlExtract Automate

HtmlExtract automates the extraction of product prices from specified web pages every 15 minutes, sending notifications when prices drop. It efficiently manages data storage and updates, ensuring users stay informed about the best deals while simplifying the monitoring process.

7/8/2025
25 nodes
Complex
schedulecomplexhtmlextractfunctionitemwritebinaryfilemovebinarydataexecutecommandreadbinaryfileemailsendautomationadvancedcodecustomapiintegrationfilesstoragelogicconditionalemailnotification
Categories:
Schedule TriggeredComplex WorkflowBusiness Process Automation
Integrations:
HtmlExtractFunctionItemWriteBinaryFileMoveBinaryDataExecuteCommandReadBinaryFileEmailSend

Target Audience

Target Audience


- E-commerce Managers: To monitor product prices automatically and receive alerts on price changes.
- Developers: For integrating web scraping functionalities into their applications.
- Data Analysts: To collect pricing data for analysis and reporting.
- Marketing Professionals: To track competitors' pricing strategies and adjust their own accordingly.

Problem Solved

Problem Solved


This workflow automates the process of monitoring product prices from various online sources. It addresses the challenge of manually checking prices, which can be time-consuming and prone to errors. By using this workflow, users can:
- Receive timely notifications when prices drop, ensuring they never miss a deal.
- Store and manage price data efficiently, enabling data-driven decision-making.
- Reduce the risk of human error in tracking price changes.

Workflow Steps

Workflow Steps


1. Scheduled Trigger: The workflow is triggered every 15 minutes using a cron job, ensuring frequent updates on product prices.
2. Initialization: The initItem function initializes the workflow by setting up the items to be monitored.
3. Web Fetching: The fetchWeb node retrieves the HTML content of the specified product links.
4. HTML Extraction: The HTML Extract node parses the fetched HTML to extract the current price based on the provided CSS selector.
5. Price Processing: The getActualPrice function processes the extracted price, converting it to a float and checking if it exists.
6. File Management: The workflow checks if a previous price data file exists and handles it accordingly, either by updating or creating a new file.
7. Price Comparison: The workflow compares the new price with the previously saved price. If there is a drop, it triggers a notification.
8. Notifications: If a better price is found, an email notification is sent to the user with the new and old prices along with the product link. If the price extraction fails, it sends an alert for manual checking.

Customization Guide

Customization Guide


- Adjust the Schedule: Modify the cron parameters to change how often the workflow checks for price updates (e.g., every 30 minutes or hourly).
- Change Product Links: Update the myWatchers array in the changeME node to include new products by adding their respective links and CSS selectors.
- Modify Notification Settings: Customize the email settings in the NotifyBetterPrice and NotifyIncorrectPrice nodes to change the recipient email addresses or the content of the notifications.
- Enhance Price Extraction: Adjust the CSS selectors in the HTML Extract node for different websites to ensure accurate price extraction based on the site's structure.