-
Notifications
You must be signed in to change notification settings - Fork 373
ValueError: too many values to unpack, how to fix it? #73
Comments
Check googleplay.py somewhere around line 130 there is a split, replace it with this:
Problem is that tokens can have the char '=' in them, so the split would return more than two values. |
so, i have to replace this ? |
Yes, except you need some new lines there... Replace the line:
With these 3 lines:
If you are not familiar with python note that code should be aligned. |
it works thanks |
I have the same problem and I tryed with your suggest but I'm receiving the following error: The code is the following: Could you help me please? how I can fix it? |
Hola Pedro! :) The error is explicit, there is no 're'. It is the python regex library so you just need to import it on the top of the file : |
Hola Mario, Muchas gracias por tu rápida respuesta. Veras, soy un estudiante de la Universidad de Baleares que esta haciendo un trabajo de fin de grado con la ayuda de esta herramienta. El tema es que he implementado varios scripts usando las llamadas que proporciona este "crawler" y durante estos meses nunca había tenido ningún problema. El problema es que como comenta el anterior usuario desde hace unos días recibo múltiples errores. Es verdad que con lo que has comentados se ha solventado (disculpa mi anterior comentario) lo solvente rápidamente (me precipite preguntando). El tema es que ahora, en la respuesta de la llamada, recibo mucha información (no necesaria) que antes no recibía. Por ejemplo, para la llamada de los permisos (véase el fichero .txt adjunto - (las primeras líneas no las tengas en cuenta son el resultado de intentar debuggear el código). Como podrás ver recibo mucha información no necesaria y al final de la respuesta lo que si interesa (que era lo que devolvía antes). ¿Tienes alguna idea de que puede pasar? ¿O de como podría arreglarlo? Muchas gracias por tu amabilidad. |
Hi Pedro, The APIs from google play (server side) are constantly changing and so is their return. Since the project maintainer is not around anymore either look for forks or alternative projects. I only use this project for downloading apps so i cant comment on the data it retrieves. For retrieval i use the following: https://github.com/facundoolano/google-play-scraper Look at this example: http://www.marioalmeida.eu/2017/03/01/700/ |
Hi Mario, I'm sorry for my last spanish post, I thought that you was Spanish. Many thanks for your help. But, I'm receiving (also) the following error : On the other hand, I could see your blog and I think that it's fantastic. Would you mind if I ask you a few things about this? If you prefer I can to contact you for email. Many thanks. Regards, |
The bad authentication is a recurring problem atm with this tool (1-2 out 3). Perhaps try reusing the token you get via authentication, I havent debugged this yet. You can use the blog message system, stackoverflow (and send link somehow) or (worst case scenario :P ) email... |
ya is also got this issue, bad auth problem but sometimes.. |
I got same error usr/lib/python2.7/dist-packages/urllib3/connectionpool.py:845: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings |
badauthentication is the current issue,, i also have this issue |
@pedrogalindo @Murthysagi |
Start this month i got this error in many times, sometimes the api works great, but sometimes i got this.
Traceback (most recent call last): api.login(GOOGLE_LOGIN, GOOGLE_PASSWORD, AUTH_TOKEN) k, v = d.split("=") ValueError: too many values to unpack
Please help, how to fix it?
The text was updated successfully, but these errors were encountered: