From 8be3e9b9f4285a561662cfb68a025826d18c14e2 Mon Sep 17 00:00:00 2001 From: "shariar@raenabeauty.com" Date: Mon, 18 Mar 2024 12:22:42 +0400 Subject: [PATCH] added Hasaki crawler --- hasaki_crawler_engine/hasaki_product_info.py | 2 ++ hasaki_crawler_engine/test2.py | 2 ++ 2 files changed, 4 insertions(+) diff --git a/hasaki_crawler_engine/hasaki_product_info.py b/hasaki_crawler_engine/hasaki_product_info.py index c7bf9a6..0fd9605 100644 --- a/hasaki_crawler_engine/hasaki_product_info.py +++ b/hasaki_crawler_engine/hasaki_product_info.py @@ -154,6 +154,8 @@ class HasakiProductInfo: driver.get(url) + iteminfo = "" + for request in driver.requests: if request.response: if '/wap/v2/product/detail' in request.url: diff --git a/hasaki_crawler_engine/test2.py b/hasaki_crawler_engine/test2.py index f2bcd24..3e3fe57 100644 --- a/hasaki_crawler_engine/test2.py +++ b/hasaki_crawler_engine/test2.py @@ -22,6 +22,8 @@ def get_raw_product(url): driver.get(url) + iteminfo = "" + for request in driver.requests: if request.response: if '/wap/v2/product/detail' in request.url: