Skip to content

Conversation

@kyle10n
Copy link

@kyle10n kyle10n commented Mar 6, 2019

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.

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.
@fuad47
Copy link

fuad47 commented Dec 30, 2019

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', '')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants