Google Play Scraper

1.2.7 · active · verified Tue Apr 14

Google-Play-Scraper is a Python library that provides APIs to easily crawl the Google Play Store for app details, reviews, search results, and more, without external dependencies. It is actively maintained with frequent updates to adapt to changes in the Play Store's structure. The current version is 1.2.7.

Warnings

Install

Imports

Quickstart

This quickstart demonstrates how to fetch an application's details and its latest user reviews using the `app` and `reviews` functions. It includes parameters for language and country, and shows how to paginate through reviews using `continuation_token` for larger datasets. Remember to replace 'com.whatsapp' with the actual package ID of the app you wish to scrape.

from google_play_scraper import app, reviews, Sort

# Fetch details for a specific app (e.g., WhatsApp)
result = app(
    'com.whatsapp',
    lang='en', # defaults to 'en'
    country='us' # defaults to 'us'
)
print("App Details:")
print(f"  Title: {result.get('title')}")
print(f"  Developer: {result.get('developer')}")
print(f"  Score: {result.get('scoreText')}")
print(f"  Installs: {result.get('installs')}")

# Fetch latest reviews for the app
result_reviews, continuation_token = reviews(
    'com.whatsapp',
    lang='en',
    country='us',
    sort=Sort.NEWEST,
    count=10 # Number of reviews to fetch per call
)

print("\nLatest 10 Reviews:")
for i, review in enumerate(result_reviews):
    print(f"  {i+1}. User: {review.get('userName')}, Score: {review.get('score')}, Text: {review.get('content')[:70]}...")

# To get all reviews (be cautious with large apps, see warnings)
# all_reviews = []
# for _ in range(5): # Example: fetch 5 batches
#     result_reviews, continuation_token = reviews(
#         'com.whatsapp',
#         lang='en',
#         country='us',
#         sort=Sort.NEWEST,
#         count=200, # Max reviews per page
#         continuation_token=continuation_token
#     )
#     all_reviews.extend(result_reviews)
#     if not continuation_token: break
# print(f"\nFetched total {len(all_reviews)} reviews.")

view raw JSON →