Comments (16)
That's great. I'm closing this issue for now considering that the issue should be addressed for all users by the latest upgrade.
AoA Rehmat
I am trying to use this api but unfortunately, the 'server says: BadAuthentication' error keeps coming up - I have generated app password and using it but still does not work - any help will be appreciated - I need to Download APKs from Google Play directly. Thanks
from gplaydl.
Same here! What could be happening?
from gplaydl.
Yes. For me too !!
from gplaydl.
Looks like the response from the GooglePlayAPI.login
has changed for one reason or another. This means the token key referenced for login will be None. I imagine this is why your logins are failing.
The snippet below is what the current dictionary response looks like from GooglePlayAPI.login
:
{
'authSubToken': None,
'gsfId': None,
'device_config_token': None,
'deviceCheckinConsistencyToken': None,
'dfeCookie': None,
'proxies_config': None,
'deviceBuilder'None
}
Update:
gplaydl/blob/master/gplaydl/gplaydl.py
actually does correctly reference authSubToken
, this shouldn't be a problem.
from gplaydl.
the token key referenced for login will be None. I imagine this is why your logins are failing.
So what can we, the users, do about it?
from gplaydl.
Just looked through the source a bit more thoroughly, it is correctly referencing authSubToken
. I'm building something on top of the googleplay-api which this tool is built on, if I find any issues I'll make sure to update.
from gplaydl.
I'm building something on top of the googleplay-api which this tool is built on, if I find any issues I'll make sure to update.
Oh. that would be great. Thanks a lot.
from gplaydl.
Are you using app passwords? Regular passwords will trigger a security challenge at Google's end. I ran a test and all looks fine for me. It works pretty well. Ensure that you are using app passwords. I'll do more testing and I'll release an upgrade if something needs a rewrite.
from gplaydl.
What 'app passwords' are you talking about? You mean API keys? That would be ridiculous since getting one isn't free.
The gplaydl help clearly states:
gplaydl
usage: gplaydl [-h] [-c] [-id PACKAGEID] [-e EMAIL] [-p PASSWORD]
[-d STORAGEPATH] [-dc DEVICECODE] [-ex]
-e EMAIL, --email EMAIL
Google username
-p PASSWORD, --password PASSWORD
Google password
I tried both without and with single and double quotes (not specified in help), and username alone and email address, which I always use to log in to Google, and still, nothing works.
You need to be very specific when answering a question and give an actual example of what worked for you in order for your answer to be of help.
from gplaydl.
I even uninstalled and reinstalled the app
Successfully uninstalled gplaydl-1.0.3
Successfully installed gplaydl-1.0.3
and added credentials to config file
gplaydl --configure -e [email protected] -p passwordOrAppPassword
Configuration file created successfully! Try downloading an APK file now.
Still getting:
Login failed. Ensure that correct credentials are provided.
I am even already logged in to my account in Chrome.
from gplaydl.
@PacoH I've released a major upgrade. Even the old version was working fine for me (on Ubuntu servers and on my Macbook Pro), but that was using an older version of gpapi. Now I've published a custom version of gpapi and I'm using it for gplaydl
.
To upgrade to the latest version, execute this in your terminal:
pip3 install --upgrade --force-reinstall gplaydl
In terms of app passwords, they aren't like the API keys. Would you kindly do a Google search? You should be able to set up an application-specific password within 5 minutes. If you can't find help from Google, follow these instructions:
- Go to your Google account settings
- Go to "Security Settings" & and then enable 2-factor auth on your account
- Once 2-factor auth is enabled, create an app password here
And then use that app password in place of your regular account password. Once you have your login info, write the following command in terminal:
gplaydl configure
And hit enter. You will be asked for your Google email and password. Provide your Google email and app password. If all goes well, your auth config will be configured.
Now try downloading an app:
gplaydl download --packageId com.twitter
And please check the readme in the main repo for complete documentation. To improve the code and overall functionality of the package, I have rewritten a major part of it and commands are changed too. I hope you will love the new version.
I hope this explanation addresses the issues for all of you.
from gplaydl.
OK. Thanks. I upgraded and now it doesn't even run.
gplaydl
Traceback (most recent call last):
File "/usr/local/bin/gplaydl", line 7, in <module>
from gplaydl.gplaydl import main
File "/usr/local/lib/python3.6/site-packages/gplaydl/gplaydl.py", line 9, in <module>
import validators
ModuleNotFoundError: No module named 'validators'
from gplaydl.
pip3 install validators
BTW this module should get installed itself. I don't know what went wrong. Please run pip3 install validators
and that should fix your issue.
from gplaydl.
Strangely, the requirements were removed from setup.py
file. Thank you for reporting this issue. I've added the requirements in setup.py
file as well as have included a requirements.txt
file too. Now installing the package from PyPi forcing a reinstall i.e. pip3 install --upgrade --force-reinstall gplaydl
should work.
from gplaydl.
Thanks! pip3 install validators
worked with existing and uninstalling/reinstalling worked as well. I see syntax has changed and creating config file is easier. I only added gmail and password, no app password. This is great. Good support.
from gplaydl.
That's great. I'm closing this issue for now considering that the issue should be addressed for all users by the latest upgrade.
from gplaydl.
Related Issues (20)
- `configure` does not work when installed by root HOT 2
- Fetch split apk languages HOT 1
- gplaydl fails to download any of my paid apps (that I've tried) HOT 1
- Default shared/anonymous configuration without using own Google account HOT 1
- Youtube video broken from video HOT 4
- [Error] Application is not Installed HOT 1
- Is there a way to change the default language / store? HOT 3
- unable to download a specific apk, help please
- Security check is needed DisplayUnlockCaptcha HOT 4
- License?
- Option to skeep download configs
- SecurityCheckError still being called even though i did give it the permission HOT 4
- RequestError: Error retrieving information from server. DF-DFERH-01 HOT 3
- installing on m1 mac mini (fail) HOT 2
- error: command '/usr/bin/gcc' failed with exit code 1 HOT 3
- Unable to download APKs since yesterday. HOT 7
- BadAuthentication HOT 5
- Is Still working this Repo? HOT 6
- [ERROR] Can't install cffi==1.14.0 HOT 2
- Error when installing via pipx HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gplaydl.