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-3.0.2.tar.gz (111.8 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-3.0.2-py3-none-any.whl (112.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for ak-gpapi-3.0.2.tar.gz
Algorithm Hash digest
SHA256 94498733ea16078ac723a498fd8633f6437cef2ac0dfb043528bc11ccebdd914
MD5 197d23c1730582a4374baa7af40fe496
BLAKE2b-256 764ee489d4fa5d14cbd9440cbea5f35e7254fd1b329bc1c9e06e4e4100fadea4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ak_gpapi-3.0.2-py3-none-any.whl
  • Upload date:
  • Size: 112.5 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-3.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 7b5fc46cc70d79b50a214fd8aaada45b5feaa710d0643470a6346076b9fd8665
MD5 d0fe22af775034a52df07a159d1cf432
BLAKE2b-256 ff10e24fa195114a061d1c14028edc7dc1fdc4fffd074dc29b079d8ccb36193b

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