added Hasaki crawler
This commit is contained in:
parent
8be3e9b9f4
commit
5ba6894313
|
@ -400,7 +400,7 @@ class HasakiProductInfo:
|
|||
except:
|
||||
pass
|
||||
|
||||
reviews = reviews1 + reviews2
|
||||
reviews = self.join_lists(reviews1, reviews2)
|
||||
|
||||
|
||||
|
||||
|
@ -446,7 +446,17 @@ class HasakiProductInfo:
|
|||
except Exception as e:
|
||||
logging.info(e)
|
||||
|
||||
|
||||
def join_lists(self, list1, list2):
|
||||
# Check if both lists are None
|
||||
if list1 is None and list2 is None:
|
||||
return None
|
||||
# Check if one of the lists is None
|
||||
elif list1 is None:
|
||||
return list2
|
||||
elif list2 is None:
|
||||
return list1
|
||||
else:
|
||||
return list1 + list2
|
||||
|
||||
def seo_info(self, raw_data):
|
||||
|
||||
|
|
Loading…
Reference in New Issue