From a1290c8772f62a9f51608c3beb0861492039966e Mon Sep 17 00:00:00 2001 From: "shariar@raenabeauty.com" Date: Fri, 15 Mar 2024 05:15:41 +0400 Subject: [PATCH] added Hasaki crawler --- hasaki_crawler_engine/hasaki_product_info.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hasaki_crawler_engine/hasaki_product_info.py b/hasaki_crawler_engine/hasaki_product_info.py index 6598c64..a4829ae 100644 --- a/hasaki_crawler_engine/hasaki_product_info.py +++ b/hasaki_crawler_engine/hasaki_product_info.py @@ -9,6 +9,8 @@ import pandas as pd from bs4 import BeautifulSoup from Util import translate_text_to_english from fake_useragent import UserAgent +import time +import random class HasakiProductInfo: def __init__(self, config): @@ -55,7 +57,7 @@ class HasakiProductInfo: try: self.get_product_info(row) - #time.sleep(random.randint(23,57)) + time.sleep(random.randint(23,57)) except: pass