NoMore201 / googleplay-api

Google Play Unofficial Python API
Other
413 stars 208 forks source link

Getting error for some apps: Google Play purchases are not supported in your country. Unfortunately you will not be able to complete purchases. #66

Closed ahm786 closed 5 years ago

ahm786 commented 6 years ago

Hi,

When I attempt to download certain apps, it returns the following error although the app is free:

Google Play purchases are not supported in your country. Unfortunately you will not be able to complete purchases.

Examples:

How can this issue get fixed? There are a lot of apps that get this error.

Full error log:

Attempting to download com.ubisoft.accovenant

Traceback (most recent call last): File "gp/obb_download.py", line 83, in fl = server.download(docId, expansion_files=True) File "/var/www/html/gp/gpapi/googleplay.py", line 661, in download raise RequestError(response.commands.displayErrorMessage) gpapi.googleplay.RequestError: 'Google Play purchases are not supported in your country. Unfortunately you will not be able to complete purchases.'

darkash commented 6 years ago

the app is geo-locked, try using tunneling and see if it works

ahm786 commented 5 years ago

the app is geo-locked, try using tunneling and see if it works

Can you refer me to a documentation or an example regarding this? Haven't heard or done "tunneling" before

IRGC commented 5 years ago

when initializing googleplay class

pass the proxy dict like this proxy= {'https': 'https://user:pass@10.10.1.10:3128/'}

refer https://github.com/NoMore201/googleplay-api/blob/master/gpapi/googleplay.py#L67

sweisgerber-dev commented 5 years ago

You could also use VPN tunneling on your host, where the gpapi applications runs on. For tests and exploration you could try e.g.: https://www.softether.org/ (not the best performance sometimes). Then you wouldn't have to use a proxy. But there are dozens of free and non-free VPN tunneling applications available.

darkash commented 5 years ago

the app is geo-locked, try using tunneling and see if it works

Can you refer me to a documentation or an example regarding this? Haven't heard or done "tunneling" before

I didn't look at the documentation before since I used this library as the dependency of other library, instead I used VPN as described by @sweisgerber-dev on the post above to bypass the country restriction