Answer the question
In order to leave comments, you need to log in
What to choose for the identifier when periodically parsing OpenCart?
The point is. The wholesaler does not want to share information before the turnover of 150k.
I decided to parse the catalog and regularly update (once a day) the price and availability of the product.
The question is, what to choose for a unique identifier?
The process itself:
1. We took the goods from the wholesaler;
2. Added to the database;
3. The next day, we parse the catalog again, if there are new products - add them, if the price of the existing ones in the database has changed - change it, if the product has disappeared from the catalog - mark in the database that the product has ended.
The question is how to compare the product from your database with the product in the wholesaler's catalog?
The fields in the database are as follows: https://dropmefiles.com/T1cHl
The only idea is to compare by url, maybe there are other suggestions.
Or do parsing not by CNC, but by url of the form:
/index.php?route=product/product&path=10&product_id=23
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question