From 7e46c2835572e711ac9014530b5b7da825d78c28 Mon Sep 17 00:00:00 2001 From: "shariar@raenabeauty.com" Date: Mon, 5 Feb 2024 14:56:09 +0400 Subject: [PATCH] FB Marketplace crawler --- fb_marketplace/fb_marketplace_product_info.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/fb_marketplace/fb_marketplace_product_info.py b/fb_marketplace/fb_marketplace_product_info.py index 1191dd9..65cdeea 100644 --- a/fb_marketplace/fb_marketplace_product_info.py +++ b/fb_marketplace/fb_marketplace_product_info.py @@ -43,7 +43,7 @@ class FbMarketplaceProductInfo: table = f"""{self.config.get('crawler_schema')}.{self.config.get('tracker_tab')}""" sql = f""" - SELECT * FROM {table} where flag=1 limit 1 + SELECT * FROM {table} where flag=0 """ print("SQL is: {}".format(sql)) self.cur.execute(sql) @@ -61,7 +61,6 @@ class FbMarketplaceProductInfo: self.cur.execute(sql) except Exception as e: logging.info(e) - pass time.sleep(random.randint(5,20))