added Hasaki crawler

This commit is contained in:
Shariar Imtiaz 2024-03-18 12:29:04 +04:00
parent 8be3e9b9f4
commit 5ba6894313
1 changed files with 12 additions and 2 deletions

View File

@ -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):