Code Monkey home page Code Monkey logo

Comments (16)

nazarwaheed avatar nazarwaheed commented on August 12, 2024 1

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.

mysticaltech avatar mysticaltech commented on August 12, 2024

Same here! What could be happening?

from gplaydl.

worldofprasanna avatar worldofprasanna commented on August 12, 2024

Yes. For me too !!

from gplaydl.

arbitraryrw avatar arbitraryrw commented on August 12, 2024

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.

PacoH avatar PacoH commented on August 12, 2024

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.

arbitraryrw avatar arbitraryrw commented on August 12, 2024

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.

PacoH avatar PacoH commented on August 12, 2024

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.

rehmatworks avatar rehmatworks commented on August 12, 2024

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.

PacoH avatar PacoH commented on August 12, 2024

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.

PacoH avatar PacoH commented on August 12, 2024

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.

rehmatworks avatar rehmatworks commented on August 12, 2024

@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:

  1. Go to your Google account settings
  2. Go to "Security Settings" & and then enable 2-factor auth on your account
  3. 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.

PacoH avatar PacoH commented on August 12, 2024

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.

rehmatworks avatar rehmatworks commented on August 12, 2024

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.

rehmatworks avatar rehmatworks commented on August 12, 2024

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.

PacoH avatar PacoH commented on August 12, 2024

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.

rehmatworks avatar rehmatworks commented on August 12, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.