Skip to content

Instantly share code, notes, and snippets.

@chandrikadeb7
Created December 26, 2023 07:20
Show Gist options
  • Save chandrikadeb7/9fa605a5fd9feae2b64d682b48004194 to your computer and use it in GitHub Desktop.
Save chandrikadeb7/9fa605a5fd9feae2b64d682b48004194 to your computer and use it in GitHub Desktop.
Scraps Google Play Store reviews of any application
from google_play_scraper import app
import pandas as pd
import numpy as np
from google_play_scraper import Sort, reviews_all
us_reviews = reviews_all(
'_app_name',
sleep_milliseconds=0, # defaults to 0
lang='en', # defaults to 'en'
country='in', # defaults to 'us'
sort=Sort.NEWEST, # defaults to Sort.MOST_RELEVANT
)
df_busu = pd.DataFrame(np.array(us_reviews),columns=['review'])
df_busu = df_busu.join(pd.DataFrame(df_busu.pop('review').tolist()))
df_busu.head()
df_busu.to_csv('_Folder destination to save current file_')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment