NLP-with-Python
NLP-with-Python copied to clipboard
It would max at 2 or 3 reviews and stop
removing the ::2 index allows the scrapper to find the 5 reviews then go to the next page.
If you don't the script thinks it has found all reviews on the first page then stops.
I think tripadvisor updated their website so this happened.
You are right. I suggest replacnig class name for num_reviews to ''hotels-hotel-review-about-with-photos-Reviews__seeAllReviews--3PpLR" and adding this line: num_reviews = num_reviews.replace('review', '')