google-play-scraper

oxylabs更新放缓

抓取 Google Play 上应用、游戏、影视和图书的公开信息,比如评分、评论和详情,省去自己解析页面。

Google Play Scraper for collecting public details about applications, games, movies & TV shows, books, and more.

暂无版本1,753star5fork同步于 2026-11-07 07:34 UTC

怎么上手

由 README 提炼,执行前请确认
make install
硬件要求按 README 说明

README 未说明,仅要求 Python 3.11 或更高版本

下载:源码 zip·GitHub Releases(安装包)本站不镜像安装包

项目说明

由 README 自动翻译提炼

按关键词抓取 Google Play 应用、电影、图书公开信息的免费小工具

抓取 Google Play 上应用、游戏、影视和图书的公开信息,比如评分、评论和详情,省去自己解析页面。

核心能力

  • 用 make scrape 加关键词抓取 Google Play 搜索结果
  • 支持 apps、movies、books 三类目,默认 apps
  • 结果导出为 {category}_play_items.csv 文件
  • CSV 含标题、价格、评分、封面链接和详情页链接
  • 大规模抓取可改用 Oxylabs Scraper API 返回 HTML

容易踩的坑

需 Python 3.11 及以上版本;类目名必须小写,查询词和类目都要加引号;免费版仅适合小规模抓取,大规模需付费 API 凭据

内容由模型根据 README 生成,可能不完整或不准确,以官方文档为准。看原文 README

最近发版

0 个版本

暂无 release 数据(可能没有发版,或尚未同步)。

用户点评

登录用户的真实使用记录,可按版本和硬件筛选
共 0 条

    还没有人点评。第一个说出真实体验的人最有价值。

    README 原文

    未翻译

    Google Play Scraper

    Oxylabs promo code

    YouTube

    This tutorial will show you how to gather public data from the Google Play store, including data points like title, price, version number, download rates, reviews, and more. In this repository, you can find a free Google Play scraper tool, designed for smaller-scale scraping tasks. If you want to increase your scraping scale, the second part of this guide will show you how to utilize a far more effective Oxylabs' Scraper API. It comes with a free trial, which you can claim by registering a free account on the dashboard.

    Free Google Play Scraper

    A free tool which you can use to get data for apps, books, or movies from Google Play using a specific search query.

    Prerequisites

    To run this tool, you need to have Python 3.11 or later installed on your system.

    Installation

    Open up a terminal window, navigate to this repository, and run this command:

    make install

    Scraping Google Play

    1. Select a category:

    To scrape data from Google Play, first choose one of these categories, that are available in Google Play:

    • apps
    • movies
    • books

    The default category in the tool is apps, so feel free to omit the CATEGORY parameter from the command if that's the category you need.

    If you prefer to choose a different category than apps, run this command in your terminal:

    make scrape QUERY="<your_query>" CATEGORY="<your_chosen_category>
    

    Otherwise, the command should look like this:

    make scrape QUERY="<your_query>"
    

    [!NOTE] Make sure the category name is in lowercase.

    2. Use a search keyword:

    For this example, let's try scraping Google Play results for movies about fishing. The command should look like this:

    make scrape QUERY="fishing" CATEGORY="movies"
    

    [!NOTE] Make sure to enclose your query and category in quotation marks. Otherwise, the tool might have trouble parsing it.

    After running the command, you should see a similar output in your terminal:

    After the tool finishes running, you can find a file named movies_play_items.csv in your current working directory. This file contains Google Play items for the query and category you entered. The file name will always be in this format: {category}_play_items.csv. The generated CSV file contains these columns of data:

    • title - The title of the movie.
    • price - The price of the movie to rent.
    • rating - The rating of the movie.
    • cover_url - The URL to the image of the cover for the movie.
    • url - The URL for the movie.

    Here's an example of how the scraped and parsed data should look like:

    Notes

    In case the code doesn't work or your project is of bigger scale, please refer to the second part of the tutorial. There, we showcase how to scrape public data with Oxylabs Scraper API.

    Scrape Google Play data with Oxylabs Scraper API

    After purchasing access to the API or claiming your free trial, you'll have to use your API credentials for authentication.

    You can retrieve Google Play results by providing your target URLs and forming a payload with job parameters. Scraper API will return the HTML of any public Google Play page you have provided.

    Python code example

    The following examples demonstrate how you can get Google Play results in HTML format. To begin, you need to send the request to the API using the Push-Pull method (or other methods):

    import requests
    from pprint import pprint
    
    ## Structure payload.
    payload = {
       'source': 'google',
       'url': 'https://play.google.com/store/games?hl=en_GB&gl=UK',
       'user_agent_type': 'desktop_edge',
       'render': 'html',
       'geo_location': 'United Kingdom',
       'locale': 'en-gb'
    }
    
    ## Get response.
    response = requests.request(
        'POST',
        'https://data.oxylabs.io/v1/queries',
        auth=('USERNAME', 'PASSWORD'), #Your credentials go here
        json=payload
    )
    
    ## This will return a JSON response with job information and results URLs.
    pprint(response.json())
    

    Once the job is finished, you can then send another request to retrieve the Google Play results. Here, you must use the job ID value that’s provided in the response of the above code sample:

    import requests
    from pprint import pprint
    
    ## Get response.
    response = requests.request(
        'GET',
        'http://data.oxylabs.io/v1/queries/{job_id}/results',
        auth=('USERNAME', 'PASSWORD')
    )
    
    ## This will return a JSON response with scraped results.
    pprint(response.json())
    

    Visit our documentation for more information.

    Output example

    The response will be in JSON format, containing HTML content and details about the job itself:

    {
      "results": [
        {
          "content": "<!DOCTYPE html><html lang=\"en\" dir=\"ltr\"><head><meta http-equiv=\"origin-trial\" content=\"Az520Inasey3TAyqLyojQa8MnmCALSEU29yQFW8dePZ7xQTvSt73pHazLFTK5f7SyLUJSo2uKLesEtEa9aUYcgMAAACPeyJvcmlnaW4iOiJodHRw...",
          "created_at": "2023-08-28 14:14:59",
          "updated_at": "2023-08-28 14:15:35",
          "page": 1,
          "url": "https://play.google.com/store/games?hl=en_GB&gl=US",
          "job_id": "7101930169060862977",
          "status_code": 200
        }
      ]
    }
    

    To get parsed results, use the free Custom Parser feature. Check out this in-depth Custom Parser tutorial to learn how to use it.

    You can also request Markdown output by using "markdown: true" flag to get an easy-to-read result format for various workloads and AI tools.

    With Oxylabs’ Google Play Scraper API, the data extraction process is as easy as it gets. Feel free to contact our 24/7 support team via live chat or email if you need assistance.

    Read More Google Scraping Related Repositories: Google Sheets for Basic Web Scraping, How To Scrape Google Jobs, Google News Scrpaer, How to Scrape Google Scholar, How to Scrape Google Flights with Python, How To Scrape Google Images, Scrape Google Search Results, Scrape Google Trends