FB Marketplace crawler

This commit is contained in:
Shariar Imtiaz 2024-02-01 14:33:02 +04:00
parent 5c341453ac
commit e24550614f
1 changed files with 2 additions and 1 deletions

View File

@ -55,7 +55,8 @@ class FbMarketplaceProducts:
####### Scroll down using Page Down key ####### Scroll down using Page Down key
html_element = self.driver.find_element(By.TAG_NAME, 'html') 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) html_element.send_keys(Keys.PAGE_DOWN)
time.sleep(random.randint(1,3)) time.sleep(random.randint(1,3))