Skip to content

Pagination function is NOT working when scraping reviews. #46

Description

@lzzqq

When I scraped the reviews of a specific restaurant, it seems that the pagination function is not working properly. The link provided in the "next" field redirects to an empty page instead of the next set of results.

{'count': 146,
'per_page': 20,
'current_page': 1,
'total_pages': 8,
'next': 'https://tripadvisor-scraper-api.omkar.cloud/reviews?query=https%3A%2F%2Fwww.tripadvisor.com%2FRestaurant_Review-g1189834-d12550855-Reviews-or30-Akrothiri_Eat_Drink_Heal_Bistro-Akrotiri_Santorini_Cyclades_South_Aegean.html&page=2',
'previous': None,
'results':
...
}

However, after clicking the link in 'next', it just indicates that "Cannot GET /reviews".

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions