Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot download free app that is not purchased #171

Open
w0r7h opened this issue May 10, 2023 · 2 comments
Open

Cannot download free app that is not purchased #171

w0r7h opened this issue May 10, 2023 · 2 comments

Comments

@w0r7h
Copy link

w0r7h commented May 10, 2023

Hello, trying to use the "download" function with the following app:

com.facebook.orca

I receive the following error:

  File "/scripts/get_apk.py", line 29, in download_apk
    download = server.download(packageName=package_name, versionCode=int(package_version), expansion_files=True)
  File "/home/developer/workspace/gpapi/googleplay.py", line 703, in download
    return self.delivery(packageName, versionCode, offerType, dlToken,
  File "/home/developer/workspace/gpapi/googleplay.py", line 628, in delivery
    raise RequestError('App not purchased')
gpapi.googleplay.RequestError: 'App not purchased'

How can I purchase the app automatically? Is there a function to do it?

@ghost
Copy link

ghost commented May 10, 2023

download already calls purchase:

response = requests.post(PURCHASE_URL, headers=headers,
params=params, verify=ssl_verify,
timeout=60,
proxies=self.proxies_config)

so code might have an error. if it helps, I have another tool here:

https://github.com/1268/google

@mar0n0
Copy link

mar0n0 commented Jun 22, 2023

Yes, the code might have an error like you said.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants