Created
May 2, 2020 20:04
-
-
Save curiousily/70aabeb31353495bc54505e86cf0f96e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
app_reviews = [] | |
for ap in tqdm(app_packages): | |
for score in list(range(1, 6)): | |
for sort_order in [Sort.MOST_RELEVANT, Sort.NEWEST]: | |
rvs, _ = reviews( | |
ap, | |
lang='en', | |
country='us', | |
sort=sort_order, | |
count= 200 if score == 3 else 100, | |
filter_score_with=score | |
) | |
for r in rvs: | |
r['sortOrder'] = 'most_relevant' if sort_order == Sort.MOST_RELEVANT else 'newest' | |
r['appId'] = ap | |
app_reviews.extend(rvs) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment