Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
This repository was archived by the owner on Nov 21, 2021. It is now read-only.
/go-googleplayPublic archive

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

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

CLI Usage

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

API Usage

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

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp