This repository was archived by the owner on Nov 21, 2021. It is now read-only.
- Notifications
You must be signed in to change notification settings - Fork8
CLI/API for downloading Android apps from the Google Playstore. Pre-built binaries for Windows & Linux
License
NotificationsYou must be signed in to change notification settings
Jarijaas/go-googleplay
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Binaries arehere
Terminology:
- Google Services Framework ID (GSFID) - Device specific identifier (hex string)
- Generated against a device config send to Google servers
- AuthSub Token - Authentication token to Playstore, exchanged against account email and password
Client for Google Playstore, can download appsUsage: gplay [flags] gplay [command]Available Commands: download Download app help Help about any command login Login using the credentials, returns new or cached gsfId and authSubFlags: --authSub string Alternatively, set env var GPLAY_AUTHSUB --email string --force-login Authenticate, even if current gsfId and authSubToken are valid --gsfId string Alternatively, set env var GPLAY_GSFID -h, --help help for gplay --password string -v, --verbose Enable debug messagesUse "gplay [command] --help" for more information about a command.
For example, to download whatsapp:
gplay download --id com.whatsapp --out whatsapp.apk
To download a file to disk:
package mainimport ("github.com/jarijaas/go-gplayapi/pkg/auth""github.com/jarijaas/go-gplayapi/pkg/playstore"log"github.com/sirupsen/logrus""io""os")funcmain() {gplay,err:=playstore.CreatePlaystoreClient(&playstore.Config{AuthConfig:&auth.Config{Email:"",Password:"",},})iferr!=nil {log.Fatal(err)}// Download the latest versionreader,downloadInfo,err:=gplay.Download("com.whatsapp",0)iferr!=nil {log.Fatal(err)}log.Infof("Download size: %d bytes",downloadInfo.Size)f,err:=os.Create("./whatsapp.apk")iferr!=nil {log.Fatal(err)}_,err=io.Copy(f,reader)iferr!=nil {log.Fatal(err)}}
This project is based onNoMore201/googleplay-api GNU General Public License
About
CLI/API for downloading Android apps from the Google Playstore. Pre-built binaries for Windows & Linux
Topics
Resources
License
Stars
Watchers
Forks
Packages0
No packages published