From e2568e79799628183408ed41ab17b1ac621834b4 Mon Sep 17 00:00:00 2001 From: "shariar@raenabeauty.com" Date: Wed, 7 Feb 2024 10:01:59 +0400 Subject: [PATCH] FB Marketplace crawler --- fb_marketplace/fb_marketplace_product_info.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fb_marketplace/fb_marketplace_product_info.py b/fb_marketplace/fb_marketplace_product_info.py index 86d15d0..492c745 100644 --- a/fb_marketplace/fb_marketplace_product_info.py +++ b/fb_marketplace/fb_marketplace_product_info.py @@ -58,7 +58,7 @@ class FbMarketplaceProductInfo: logging.info("============== {}/{}: Collecting data for {} ==============".format(str(cnt),str(len(results)),result[0])) self.getProductInfo(result) sql = f""" - update {self.config.get('crawler_schema')}.{self.config.get('tracker_tab')} set flag=1 where name='{result[0]}' and price={result[1]} and url='{result[2]}' + update {self.config.get('crawler_schema')}.{self.config.get('tracker_tab')} set flag=1 where url='{result[2]}' """ logging.info("SQL is: {}".format(sql)) self.cur.execute(sql)