Extending the scraper to include the number of times it was voted helpful by other Amazon users.
Add the below attribute to get_comments_with_product_id() and incorporate it in the reviews list.
helpful = review.find(attrs={'data-hook': 'helpful-vote-statement'}).text
# Retain only the number of helpful votes
helpful = helpful.strip().split(' ')[0]
Extending the scraper to include the number of times it was voted helpful by other Amazon users.
Add the below attribute to
get_comments_with_product_id()
and incorporate it in the reviews list.