Web Scraping to Automatically Update WooCommerce Product Data
-
Hello all,
This is my first post as I feel I have exhausted most attempts to find an answer!
I have a WordPress price comparison website for affiliate purposes. I use WoocCommerce to store and update the product data. Currently, I use a Python script with selenium locally to scrape product prices from different websites. This creates a spreadsheet which I then manually import into WooCommerce to update the product data. I am looking for a solution whereby the scraping can be done automatically e.g every 5 minutes in the cloud/on a server and then automatically update the WooCommerce product data and finally publishes the changes. All this without having my PC on and avoiding any manual intervention. Essentially, I am trying to create a ‘live’ price comparison website.
Please can someone point me in the right direction what the options are on how to do this?
More detailed breakdown of the steps required:
Step 1. Scrape the price from a website
Step 2. Update the Regular price field on WooCommerce
Step 3. Using this price, perform a calculation to calculate e.g. price per kg. The kg mass is already in a WooCommerce custom field and does not change, so the automated process would need to extract the mass before performing the calculation.
Step 4. Update the ‘price per kg’ WooCommerce custom field.Thanks in advance,
Charlie
The page I need help with: [log in to see the link]
- The topic ‘Web Scraping to Automatically Update WooCommerce Product Data’ is closed to new replies.