Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/NoMore201/googleplay-api
Google Play Unofficial Python API
https://github.com/NoMore201/googleplay-api
api apk download google googleplay-api playstore
Last synced: 3 months ago
JSON representation
Google Play Unofficial Python API
- Host: GitHub
- URL: https://github.com/NoMore201/googleplay-api
- Owner: NoMore201
- License: other
- Created: 2017-08-27T15:23:00.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2023-08-15T00:55:04.000Z (about 1 year ago)
- Last Synced: 2024-04-29T23:14:36.262Z (7 months ago)
- Topics: api, apk, download, google, googleplay-api, playstore
- Language: Python
- Homepage:
- Size: 2.82 MB
- Stars: 400
- Watchers: 40
- Forks: 206
- Open Issues: 95
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Google play python API [![Build Status](https://travis-ci.org/NoMore201/googleplay-api.svg?branch=master)](https://travis-ci.org/NoMore201/googleplay-api)
This project contains an unofficial API for google play interactions. The code mainly comes from
[GooglePlayAPI project](https://github.com/egirault/googleplay-api/) 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 GooglePlayAPImail = "[email protected]"
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.