Skip to content

[BUG] Country code not working properly when fetching reviews #234

@azolinmf

Description

@azolinmf

Library version: 1.2.7

I am trying to retrieve reviews from the same large apps from different countries, but the country parameter does not seem to work.
For example, when trying to retrieve the reviews from Instagram written in English from Australia, United States and South Africa, the code returned the exact same reviews for all 3 attempts.

This

result, continuation_token = reviews(
    'com.instagram.android',
    lang='en',
    country='us',
    sort=Sort.NEWEST, 
    count=500, 
    filter_score_with=None 
)

this

result, continuation_token = reviews(
    'com.instagram.android',
    lang='en',
    country='au',
    sort=Sort.NEWEST, 
    count=500, 
    filter_score_with=None 
)

and this

result, continuation_token = reviews(
    'com.instagram.android',
    lang='en',
    country='za',
    sort=Sort.NEWEST, 
    count=500, 
    filter_score_with=None 
)

all returned the same data.

I've also tried to use the reviews_all function, change the sort to MOST_RELEVANT, and also use other country codes. Nothing seems to work.

As the google play store does have different pages (and different reviews) for the same app if you just change the country and maintain the selected language, this should work, right?
For example, https://play.google.com/store/apps/details?id=com.instagram.android&hl=en&gl=au leads to the Instagram page in Australia, with all reviews in English (because of hl=en and gl=au in the url). And https://play.google.com/store/apps/details?id=com.instagram.android&hl=en&gl=za leads to the Instagram page in South Africa, with all reviews in English (because of hl=en and gl=za in the url).

Expected behavior
The method should return the reviews written in the given language for the given country, and not always the same reviews independent of the country parameter.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions