[Python] Using Python and the Google Play API, need to: download information about the top 10...

Discussão em 'Python' iniciado por Stack, Julho 9, 2025.

  1. Stack

    Stack Membro Participativo

    The task suggests using the Google Play API, but Google, if I understand correctly, does not provide the ability to download information (the task asks for a rating, number of downloads) about third-party offers. I tried to use SerpAPI but it gives me bad results(top 10 in my code is not right top 10).

    import os
    import re
    from serpapi import GoogleSearch
    from dotenv import load_dotenv


    load_dotenv()

    params = {
    "engine": "google_play",
    "apps_category": "SOCIAL",
    "api_key": os.getenv("API_KEY"),
    "gl": "ua" #Adding charts doesn't change anything
    }

    search = GoogleSearch(params)
    results = search.get_dict()
    organic_results = results["organic_results"]
    import pandas as pd

    data = [{
    'Title': app.get('title'),
    'Rating': app.get('rating'),
    'Installs': app.get('downloads'),
    'Link': app.get('link')
    } for section in results.get('organic_results', []) for app in section.get('items', [])]

    df = pd.DataFrame(data)
    print(df.to_string(index=False))


    Results(can that no tiktok on 2 place) Title Rating Installs Link TikTok Lite - Save Data & Fast 4.5 1,000,000,000+ https://play.google.com/store/apps/details?id=com.zhiliaoapp.musically.go Facebook 4.7 10,000,000,000+ https://play.google.com/store/apps/details?id=com.facebook.katana

    Threads 4.1 100,000,000+ https://play.google.com/store/apps/details?id=com.instagram.barcelona

    Instagram Lite 4.1 500,000,000+ https://play.google.com/store/apps/details?id=com.instagram.lite

    Facebook Lite 4.4 1,000,000,000+ https://play.google.com/store/apps/details?id=com.facebook.lite

    Widgetable: Besties & Couples 4.7 10,000,000+ https://play.google.com/store/apps/details?id=com.widgetable.theme.android

    Telegram X 4.1 100,000,000+ https://play.google.com/store/apps/details?id=org.thunderdog.challegram

    Reddit 4.7 100,000,000+ https://play.google.com/store/apps/details?id=com.reddit.frontpage HiWaifu: AI Friend & Waifu Hub 4.2 1,000,000+ https://play.google.com/store/apps/details?id=com.hiwaifu.app NGL: ask me anything 4.3 100,000,000+ https://play.google.com/store/apps/details?id=com.nglreactnative rednote 4.1 10,000,000+ https://play.google.com/store/apps/details?id=com.xingin.xhs Cheelee: Short Videos for You 4.7 10,000,000+ https://play.google.com/store/apps/details?id=io.cheelee.app HoYoLAB 3.4 10,000,000+ https://play.google.com/store/apps/details?id=com.mihoyo.hoyolab Chatspin Random Video Chat Duo 4.4 5,000,000+ https://play.google.com/store/apps/details?id=com.Chatspin Weverse: Connect with Artists 4.7 10,000,000+ https://play.google.com/store/apps/details?id=co.benx.weverse Locket Widget 4.5 10,000,000+ https://play.google.com/store/apps/details?id=com.locket.Locket Tumblr—Fandom, Art, Chaos 4.5 100,000,000+ https://play.google.com/store/apps/details?id=com.tumblr BeReal. Your friends for real. 3.8 10,000,000+ https://play.google.com/store/apps/details?id=com.bereal.ft Pi Network 4.3 100,000,000+ https://play.google.com/store/apps/details?id=com.blockchainvault Achat - Global Voice Chat 0.0 10,000,000+ https://play.google.com/store/apps/details?id=com.ahchat.app Bigo Live–Live Stream, Go Live 4.5 500,000,000+ https://play.google.com/store/apps/details?id=sg.bigo.live Cheelee: Short Videos for You 4.7 10,000,000+ https://play.google.com/store/apps/details?id=io.cheelee.app Tumblr—Fandom, Art, Chaos 4.5 100,000,000+ https://play.google.com/store/apps/details?id=com.tumblr BeReal. Your friends for real. 3.8 10,000,000+ https://play.google.com/store/apps/details?id=com.bereal.ft Poppo Live- Live Stream 4.0 10,000,000+ https://play.google.com/store/apps/details?id=com.baitu.qingshu Clapper: Video, Live, Chat 3.4 5,000,000+ https://play.google.com/store/apps/details?id=com.newsclapper.video Moj: Drama Series & Reels 4.1 100,000,000+ https://play.google.com/store/apps/details?id=in.mohalla.video [​IMG]

    Continue reading...

Compartilhe esta Página