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: