Web Scraping and Price Comparison

So I’ve been able to webscrape the prices of a website. However, I need to change this value depending on how much discount the retailer has given me with the affiliate link, what would be the best way to do this?

Also sometimes, the discount is not applicable on products which are already on discount and is only applicable on full-price items. The only way I can think of doing this is by having a full price value and comparing it to that but that negates the fact the company could just change their standard price without putting it on sale in which case my system would read that item as no longer ‘full price’ and won’t show the product with a discount but would actually be applicable for discount.

This topic was automatically closed after 70 days. New replies are no longer allowed.