Skip to main content

Unofficial python api for google play

Project description

Google play python API Build Status

This project contains an unofficial API for google play interactions. The code mainly comes from GooglePlayAPI project which is not maintained anymore. The code was updated with some important changes:

  • ac2dm authentication with checkin and device info upload
  • updated search and download calls
  • select the device you want to fake from a list of pre-defined values (check device.properties) (defaults to a OnePlus One)

Build

This is the recommended way to build the package, since setuptools will take care of generating the googleplay_pb2.py file needed by the library (check the setup.py)

$ python setup.py build

Usage

Check scripts in test directory for more examples on how to use this API.

from gpapi.googleplay import GooglePlayAPI

mail = "mymail@google.com"
passwd = "mypasswd"

api = GooglePlayAPI(locale="en_US", timezone="UTC", device_codename="hero2lte")
api.login(email=mail, password=passwd)

result = api.search("firefox")

for doc in result:
    if 'docid' in doc:
        print("doc: {}".format(doc["docid"]))
    for cluster in doc["child"]:
        print("\tcluster: {}".format(cluster["docid"]))
        for app in cluster["child"]:
            print("\t\tapp: {}".format(app["docid"]))

For first time logins, you should only provide email and password. The module will take care of initalizing the api, upload device information to the google account you supplied, and retrieving a Google Service Framework ID (which, from now on, will be the android ID of your fake device).

For the next logins you should save the gsfId and the authSubToken, and provide them as parameters to the login function. If you login again with email and password, this is the equivalent of re-initalizing your android device with a google account, invalidating previous gsfId and authSubToken.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ak-gpapi-2.0.1.tar.gz (63.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ak_gpapi-2.0.1-py3-none-any.whl (63.3 kB view details)

Uploaded Python 3

File details

Details for the file ak-gpapi-2.0.1.tar.gz.

File metadata

  • Download URL: ak-gpapi-2.0.1.tar.gz
  • Upload date:
  • Size: 63.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for ak-gpapi-2.0.1.tar.gz
Algorithm Hash digest
SHA256 82abe04ebdfbb5e4d60733e6d44353f4eae8eb1010ae701cc369832caa75832d
MD5 6f35f981d92d2c2f70febd625cfee3bc
BLAKE2b-256 65312abb7139217c0046401abd39e5bc5fd2ee7759d15aaad0b552aab1017a06

See more details on using hashes here.

File details

Details for the file ak_gpapi-2.0.1-py3-none-any.whl.

File metadata

  • Download URL: ak_gpapi-2.0.1-py3-none-any.whl
  • Upload date:
  • Size: 63.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for ak_gpapi-2.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 536351b1d5f712636b6ac05bb2578e72cc89240523dd7d99782807bd53e2232d
MD5 0fbc2bcfcfcee8dc1ce15fcb704ebe85
BLAKE2b-256 1bf4a4f6c6827676a1d0d47577f0b873cbb5d6f8d68c1d96ee5e78d3ecc448bb

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page