It seems that you're using an outdated browser. Some things may not work as they should (or don't work at all).
We suggest you upgrade newer and better browser like: Chrome, Firefox, Internet Explorer or Opera

×
avatar
Nix31: Hi, I'm having trouble logging in with version 908836a of the script. I've attempted deleting gog-cookies.dat and disabling 2-factor auth but login still fails.
Could you try the dev branch please ? I've made some changes to login since the last update on master, and I've just verified that I can log in on the dev branch at least.


(If you're uncomfortable using the Dev branch with it's currently out of date documentation and syntax changes to some commands , you should be able to revert back to the master branch after the gog-cookies.dat is generated, that at least should be backwards compatible.
Post edited April 25, 2018 by Kalanyr
avatar
Kalanyr: Could you try the dev branch please ? I've made some changes to login since the last update on master, and I've just verified that I can log in on the dev branch at least.


(If you're uncomfortable using the Dev branch with it's currently out of date documentation and syntax changes to some commands , you should be able to revert back to the master branch after the gog-cookies.dat is generated, that at least should be backwards compatible.
Thank you, I was able to log in with the dev branch. I'll trying using it if it's the most up-to-date and revert to master if needed.
Seeking some assistance, I'm sure I'm missing something simple. I remember using this script ages ago, but I can't get it to work.

I installed Python, then

pip install html5lib html2text
pip install requests
pip install pyOpenSSL

I use the login parameter, but it keeps rejecting the username / password:

login failed, verify your username/password and try again.
21:51:06 | exiting...

Bit the details are correct. Maybe I missed a step?

EDIT:

I made some small progress. Firstly I turned off 2 step verification. Then I tried the script from the dev branch https://github.com/Kalanyr/gogrepo/tree/dev

This one goes further, but I get this error:

03:48:22 | cannot continue, gog is asking for a reCAPTCHA :( try again in a few minutes.
03:48:22 | exiting...

Any tips how to resolve this one?

Thanks!
Post edited April 27, 2018 by PhilsComputerLab
avatar
PhilsComputerLab: Seeking some assistance, I'm sure I'm missing something simple. I remember using this script ages ago, but I can't get it to work.

I installed Python, then

pip install html5lib html2text
pip install requests
pip install pyOpenSSL

I use the login parameter, but it keeps rejecting the username / password:

login failed, verify your username/password and try again.
21:51:06 | exiting...

Bit the details are correct. Maybe I missed a step?

EDIT:

I made some small progress. Firstly I turned off 2 step verification. Then I tried the script from the dev branch https://github.com/Kalanyr/gogrepo/tree/dev

This one goes further, but I get this error:

03:48:22 | cannot continue, gog is asking for a reCAPTCHA :( try again in a few minutes.
03:48:22 | exiting...

Any tips how to resolve this one?

Thanks!
Your IP is marked as suspicious probably from your previous attempts to log in, you have 3 options in increasing difficulty of technical difficulty:

1) Wait for IP the be unmarked, takes anywhere from a couple of hours to a couple of days
2) Change your external IP (power cycle the modern, use a VPN, log in using a friend's internet etc)
3) Get Firefox (or similar), log into GOG on it, and then use a plugin to export your cookies in cookies.txt then place cookies.txt in the same folder as the gogrepo script.


@All
Are other people having problems with logging in ? I suspect I know what the problem is and can backport a fix it to master but not sure if it's worth the trouble.
Post edited April 28, 2018 by Kalanyr
I will try those suggestions!

I had a go with the cookie exporting earlier, I used Chrome, then Firefox with the cookies.txt plugin.

Does the gog-cookies.dat need to get formatted in a special way?

D:\GOG Backups>py -2 gogrepoc.py update
12:22:10 | loading local manifest...
12:22:10 | failed to load cookies, did you login first?

D:\GOG Backups>py -3 gogrepoc.py update
12:22:15 | loading local manifest...
12:22:15 | failed to load cookies, did you login first?

EDIT: Ah I renamed the cookie file. Using cookies.txt instead of gog-cookies.dat did the trick!
Post edited April 28, 2018 by PhilsComputerLab
avatar
Kalanyr: Your IP is marked as suspicious probably from your previous attempts to log in, you have 3 options in increasing difficulty of technical difficulty:

1) Wait for IP the be unmarked, takes anywhere from a couple of hours to a couple of days
2) Change your external IP (power cycle the modern, use a VPN, log in using a friend's internet etc)
3) Get Firefox (or similar), log into GOG on it, and then use a plugin to export your cookies in cookies.txt then place cookies.txt in the same folder as the gogrepo script.


@All
Are other people having problems with logging in ? I suspect I know what the problem is and can backport a fix it to master but not sure if it's worth the trouble.
I remember I had some trouble logging in last time my cookie expired.
I've pushed an independent fix for this to master and verified that login is possible. The Dev branch already resolved this incidentally but that fix is a bit more complex.

(The issue was that GOG changed a HTML element meaning gogrepo could no longer detect when ReCaptcha is triggered)
avatar
PhilsComputerLab: I will try those suggestions!

I had a go with the cookie exporting earlier, I used Chrome, then Firefox with the cookies.txt plugin.

Does the gog-cookies.dat need to get formatted in a special way?

D:\GOG Backups>py -2 gogrepoc.py update
12:22:10 | loading local manifest...
12:22:10 | failed to load cookies, did you login first?

D:\GOG Backups>py -3 gogrepoc.py update
12:22:15 | loading local manifest...
12:22:15 | failed to load cookies, did you login first?

EDIT: Ah I renamed the cookie file. Using cookies.txt instead of gog-cookies.dat did the trick!
Yes, sorry about that. I changed the way the import worked because the old way nuked your cookies file if it wasn't successful, which proved problematic when the way to export cookies from Firefox changed after an update that broke old plugins. That's one of the things I need to update in the readme.
Post edited April 28, 2018 by Kalanyr
Thank YOU for all your work, greatly appreciated.


It's now downloading all the games :)
Holy cow I started a clean update of my manifest and I am getting "400" errors left and right.
avatar
paladin181: Holy cow I started a clean update of my manifest and I am getting "400" errors left and right.
I just started update (no previous manifest file, -lang en -os windows) with the latest gogrepo, and at least so far I haven't seen 400 errors, but we will see how it progresses.
avatar
paladin181: Holy cow I started a clean update of my manifest and I am getting "400" errors left and right.
GOG went down twice today. You were probably running at the time it was down.
avatar
Kalanyr: GOG went down twice today. You were probably running at the time it was down.
Still getting these this morning. The link is exceptionally long. MAybe it's just one or a few of their servers since I'm not getting it on everything....
Are you using my version of GOGrepo or wooly's version ? Because at a glance the encoding of the file name for the files you're having problems with looks like an issue that was corrected a long time ago on my branch. If you're using mine, I suggest doing a full manifest update, as some of your entries must be corrupted.

I downloaded the exact agarest file you're trying to download today (after an update). I am on my own dev branch version right now which is like 1 commit ahead of the uploaded dev branch but nothing relevant to this , and there's no change in the dev branch that would be relevant compared to master either.
Post edited May 10, 2018 by Kalanyr
avatar
Kalanyr: Are you using my version of GOGrepo or wooly's version ? Because at a glance the encoding of the file name for the files you're having problems wiht looks like an issue that was corrected a long time ago on my branch. If you're using mine, I suggest doing a full manifest update, as some of your entries must be corrupted.
I'm using yours, but not the latest dev branch. Just the last stable one, I believe.. I'll delete the manifest and start over because I do a full update about twice a month. This was one of those times.
Post edited May 10, 2018 by paladin181
avatar
Kalanyr: Are you using my version of GOGrepo or wooly's version ? Because at a glance the encoding of the file name for the files you're having problems wiht looks like an issue that was corrected a long time ago on my branch. If you're using mine, I suggest doing a full manifest update, as some of your entries must be corrupted.
avatar
paladin181: I'm using yours, but not the latest dev branch. Just the last stable one, I believe.. I'll delete the manifest and start over because I do a full update about twice a month. This was one of those times.
I wonder if GOG crashed during your manifest update. That shouldn't cause that kind of error but I'm at a bit of a loss otherwise. It's kind of hard to test for the situation "GOG decides to have a total meltdown in the middle of an update / download command". I was in the middle of a download so I can say that that does recover well , though it throws some errors that would be utterly bizarre unless you happened to check GOG at a very similar time and realized it was down.
Post edited May 10, 2018 by Kalanyr