From e24550614fa48645c6e21601216e44a6da787248 Mon Sep 17 00:00:00 2001 From: "shariar@raenabeauty.com" Date: Thu, 1 Feb 2024 14:33:02 +0400 Subject: [PATCH] FB Marketplace crawler --- fb_marketplace/fb_marketplace_products.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fb_marketplace/fb_marketplace_products.py b/fb_marketplace/fb_marketplace_products.py index 1251224..5fb0cb1 100644 --- a/fb_marketplace/fb_marketplace_products.py +++ b/fb_marketplace/fb_marketplace_products.py @@ -55,7 +55,8 @@ class FbMarketplaceProducts: ####### Scroll down using Page Down key html_element = self.driver.find_element(By.TAG_NAME, 'html') - for _ in range(1000): + for x in range(300): + logging.info("Pagedown count: {}".format(x)) html_element.send_keys(Keys.PAGE_DOWN) time.sleep(random.randint(1,3))