added Hasaki crawler

This commit is contained in:
Shariar Imtiaz 2024-03-18 12:21:39 +04:00
parent 1f96972b6d
commit b134f50f1e
2 changed files with 2 additions and 3 deletions

View File

@ -164,10 +164,9 @@ class HasakiProductInfo:
else: else:
iteminfo = request.response.body iteminfo = request.response.body
iteminfo_json = json.loads(iteminfo)
driver.quit() driver.quit()
iteminfo_json = json.loads(iteminfo)
return iteminfo_json return iteminfo_json
def product_info(self, data, raw_data): def product_info(self, data, raw_data):

View File

@ -40,4 +40,4 @@ def get_raw_product(url):
return iteminfo_json return iteminfo_json
get_raw_product('https://hasaki.vn/san-pham/nuoc-tay-trang-bioderma-danh-cho-da-nhay-cam-500ml-9740.html') print(get_raw_product('https://hasaki.vn/san-pham/nuoc-tay-trang-bioderma-danh-cho-da-nhay-cam-500ml-9740.html'))