This project contains an unofficial API for google play interactions. The code mainly comes from GooglePlayAPI project which is not maintained anymore. An authentication error was fixed.
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 initializing 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-initializing your android device with a google account, invalidating previous gsfId and authSubToken.
Metadata
Release files for gpapi2 0.4.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| gpapi2-0.4.5.tar.gz | 85.2 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| gpapi2-0.4.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 169.7 kB
Release files / gpapi2-0.4.5.tar.gz
| Download URL | gpapi2-0.4.5.tar.gz |
|---|---|
| Size | 85.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
16b589ae659f554466b7aea76c3f211d5cb2997904301743fd6729beda21e9c0
|
|
BLAKE2b-256 checksum How to use checksums |
21f0440ea6c082f9c2bf18be8c7f59829590fcd97843a4a5598933c815d21b95
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.10.4
|
Release files / gpapi2-0.4.5-py3-none-any.whl
| Download URL | gpapi2-0.4.5-py3-none-any.whl |
|---|---|
| Size | 84.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bad4a8a8fbc944dd6dd61e7b97337b5ee47f5707527c1e023d359e099cd4a7d3
|
|
BLAKE2b-256 checksum How to use checksums |
8fd7744f3aa01a25ce949e138a4bad235cef4151dbf2a6f616f83d535ba56469
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.10.4
|
Security for gpapi2 0.4.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.