JoMingyu / google-play-scraper

Google play scraper for Python inspired by <facundoolano/google-play-scraper>
MIT License
722 stars 197 forks source link

[BUG] Sort.NEWEST returns the same items as Sort.MOST_RELEVANT. #187

Closed cheburashka5 closed 5 months ago

cheburashka5 commented 11 months ago

Library version 1.2.4

Describe the bug Sort.NEWEST returns the same items as Sort.MOST_RELEVANT. They are both the MOST_RELEVANT items.

Code from google_play_scraper import Sort, reviews

result = reviews( 'com.google.android.youtube', lang='en', # defaults to 'en' country='us', # defaults to 'us' sort=Sort.NEWEST, # defaults to Sort.NEWEST count=10, # defaults to 100 )

print(result)

has identical items to

from google_play_scraper import Sort, reviews

result = reviews( 'com.google.android.youtube', lang='en', # defaults to 'en' country='us', # defaults to 'us' sort=Sort.MOST_RELEVANT, # defaults to Sort.NEWEST count=10, # defaults to 100 )

Expected behavior Sort.NEWEST should return the newest returns, not the most relevant.

cheburashka5 commented 11 months ago

@JoMingyu, could you take a look please?

Meihb commented 11 months ago

i tried as following: reviews_list, continuation_token = reviews( . . . sort=2, # defaults to Sort.NEWEST count=5, # defaults to 100

filter_score_with=5 # defaults to None(means all score)

)

replace the enum with number,and it works for me 1 for most relevant ,2 for newest,3 for rating

JoMingyu commented 9 months ago

@Meihb Nice work. I'll include it in the next release.

JoMingyu commented 5 months ago

It fixed at v1.2.6. Check it out!