added Hasaki crawler
This commit is contained in:
parent
1f96972b6d
commit
b134f50f1e
|
@ -164,10 +164,9 @@ class HasakiProductInfo:
|
|||
else:
|
||||
iteminfo = request.response.body
|
||||
|
||||
iteminfo_json = json.loads(iteminfo)
|
||||
|
||||
driver.quit()
|
||||
|
||||
iteminfo_json = json.loads(iteminfo)
|
||||
return iteminfo_json
|
||||
|
||||
def product_info(self, data, raw_data):
|
||||
|
|
|
@ -40,4 +40,4 @@ def get_raw_product(url):
|
|||
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'))
|
Loading…
Reference in New Issue