This commit is contained in:
merdan 2023-05-03 14:15:16 +05:00
parent 5f78c4915f
commit feb10c15ef
1 changed files with 4 additions and 1 deletions

View File

@ -84,10 +84,13 @@ func worker(importer *repositories.Importer, stopCh <-chan struct{}, updatePerio
if err != nil {
log.Println("Error retrieving products:", err)
continue
} else {
log.Println(len(result))
}
// Update products as needed
for _, product := range result {
for index, product := range result {
log.Printf("NO: %d, URL: %s", index, product.TextValue)
// Retrieve the latest information from the source URL
parser := repositories.NewLinkParser(product.TextValue)
data, err := parser.ParseLink()