python3 -m pip install google-play-scraper
python3 main.py
Open the output CSV file by dropping it on Google Drive.
import csv | |
from google_play_scraper import Sort, reviews_all | |
APP_ID = "com.reflectlyApp" | |
all_results = [] | |
for x in range(1, 6): | |
results = reviews_all( | |
APP_ID, | |
sleep_milliseconds=0, # defaults to 0 | |
lang='en', # defaults to 'en' | |
country='us', # defaults to 'us' | |
sort=Sort.MOST_RELEVANT, # defaults to Sort.MOST_RELEVANT | |
filter_score_with=x # defaults to None(means all score) | |
) | |
all_results.extend(results) | |
if __name__ == '__main__': | |
f = open('{}_reviews.csv'.format(APP_ID), 'w') | |
output = csv.writer(f) | |
output.writerow(all_results[0].keys()) # header row | |
for row in all_results: | |
output.writerow(row.values()) | |
f.close() | |