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

×
I would like to make a script or program that will download all of my games (and their extras) to folder so I have them all located locally for install at my convenience without a network connection. Is this possible via command line tools or a script? Is there any API?

And yes. I've used Galaxy, it doesn't really do what I want. I'm looking to make a local "repository" of all of my GOG files.
avatar
evoblade2000: I would like to make a script or program that will download all of my games (and their extras) to folder so I have them all located locally for install at my convenience without a network connection. Is this possible via command line tools or a script? Is there any API?

And yes. I've used Galaxy, it doesn't really do what I want. I'm looking to make a local "repository" of all of my GOG files.
Related I think?

http://www.gog.com/forum/general/gogrepopy_python_script_for_regularly_backing_up_your_purchased_gog_collection_for_full_offline_e/page1
Post edited March 11, 2016 by tfishell
avatar
evoblade2000: I would like to make a script or program that will download all of my games (and their extras) to folder so I have them all located locally for install at my convenience without a network connection. Is this possible via command line tools or a script? Is there any API?
I think there are already two user-made tools for that, lgogdownloader and gogrepo.py.

I regularly use gogrepo.py. It works both in Linux and Windows, as long as all the the needed dependencies have been installed, starting from python. After you have set it up, it is quite easy to keep your local GOG game installer collection up to date with it.
avatar
evoblade2000: I would like to make a script or program that will download all of my games (and their extras) to folder so I have them all located locally for install at my convenience without a network connection. Is this possible via command line tools or a script? Is there any API?

And yes. I've used Galaxy, it doesn't really do what I want. I'm looking to make a local "repository" of all of my GOG files.
Um, Galaxy does do that. You need to go into each game card in your library and click on the "More" button. From there you can download all of the game extras as well as the standalone installers.
avatar
evoblade2000: I would like to make a script or program that will download all of my games (and their extras) to folder so I have them all located locally for install at my convenience without a network connection. Is this possible via command line tools or a script? Is there any API?

And yes. I've used Galaxy, it doesn't really do what I want. I'm looking to make a local "repository" of all of my GOG files.
Use GOG Downloader. You will have to click links in your account manually, but the downloader does the rest.
If you’re on Linux, lgogdownloader is in my opinion *the* tool for this job ;)
Yes, it is! I use wget under Linux. It needs "cookie" file to be exported from current browser's session. You can export cookie file using Export Cookies plugin for Firefox browser.

Format to be used:
$ wget -O <game_title.exe> -c --load-cookies=<path-to-cookie-file> <download link>

edit: nvm, missed that you need to download all the games. gogrepo.py script is your answer then. It is made for this single task.
Post edited March 11, 2016 by vsr
avatar
evoblade2000: snip
As others have pointed there are quite a few alternatives. Here is another one for your consideration GoodOfflineGames.

- it's command line .Net application for primarily targets Windows (should work on Mono Linux/Mac OS as well...)
- it was designed for downloading incremental updates to the library and metadata
- has optional feature to move old installers to _RecycleBin folder, so that your storage only has latest versions that GOG provides
- contains HTML frontend for searching, accessing some of the data like (optional) screenshots, product serial keys

Since I wrote it - I've been using it for about 8 month to keep my 1000+ games library constantly updated:
- downloaded about 3Tb of game data
- downloaded about 4Gb of screenshots
- downloaded about 700Mb of product images
avatar
cogadh: Um, Galaxy does do that.
avatar
Hickory: Use GOG Downloader. You will have to click links in your account manually, but the downloader does the rest.
I presume his meaning was to be able to download (and keep updated) all his GOG games without having to go through each gamepage, downloading them one by one. Especially important if you have well over 1000 GOG games like I do. I don't even want to think how many clicks I would have had to perform to download them all in the official way.

And keeping your GOG repository up to date with that method is even harder, trying to track down what has changed and what exactly you need to download... E.g. gogrepo.py makes that quite simple, it detects what has changed compared to your existing files, moves away files that appear to be obsolete (you can still check these files afterwards before actually deleting them, to make sure you really want to get rid of them), and downloads anything that has either changed or is new.

Plus, it can also perform an integrity check for your collection, to make sure they are still ok and not corrupted. (A couple of GOG game installers are missing md5 sum though; for those gogrepo can only perform a size check as an "integrity check", I think. One can always check the integrity of those few exceptions manually.).
Post edited March 11, 2016 by timppu
avatar
evoblade2000: I would like to make a script or program that will download all of my games (and their extras) to folder so I have them all located locally for install at my convenience without a network connection. Is this possible via command line tools or a script? Is there any API?

And yes. I've used Galaxy, it doesn't really do what I want. I'm looking to make a local "repository" of all of my GOG files.
Just download each game as you buy them. Simple. I do this, have a HDD in the machine, then a routine 3 month back up system on that - although I will add a raid backup external to the machine to complement this process.
avatar
boggydigital: GoodOfflineGames.
Woa how is it, compared to gogrepo?
Soon I'll have to download all my games too. O_o'
avatar
evoblade2000: I would like to make a script or program that will download all of my games (and their extras) to folder so I have them all located locally for install at my convenience without a network connection. Is this possible via command line tools or a script? Is there any API?

And yes. I've used Galaxy, it doesn't really do what I want. I'm looking to make a local "repository" of all of my GOG files.
avatar
cogadh: Um, Galaxy does do that. You need to go into each game card in your library and click on the "More" button. From there you can download all of the game extras as well as the standalone installers.
Doing it in Galaxy is very "clicky". As you said "You need to go into each game card in your library and click on the "More" button. " (emphasis mine)

50 games would be like 500 clicks to get all of the extras and whatnot


Thanks for all of the replies. I'll check out what you guys posted. Looks like other people have had the same idea.
I favor lgogdownloader. Tried gogrepo.py for a while, but went back.
I think it's only for Linux though, when gogrepo.py should work on anything.
avatar
cogadh: Um, Galaxy does do that. You need to go into each game card in your library and click on the "More" button. From there you can download all of the game extras as well as the standalone installers.
avatar
evoblade2000: Doing it in Galaxy is very "clicky". As you said "You need to go into each game card in your library and click on the "More" button. " (emphasis mine)

50 games would be like 500 clicks to get all of the extras and whatnot

Thanks for all of the replies. I'll check out what you guys posted. Looks like other people have had the same idea.
I never said it wasn't a hassle, just that it can actually do what you want. The only thing that is likely to do what you want with the least amount of hassle is the gogrepo.py script, however, I think GOG's new two-factor authentication breaks it (if you have it enabled). After I turned it on, the script fails at login.
avatar
nightcraw1er.488: Just download each game as you buy them. Simple. I do this, have a HDD in the machine, then a routine 3 month back up system on that - although I will add a raid backup external to the machine to complement this process.
That doesn't work for me as I quite often purchase the games while I am at work, and I don't keep the external HDD always with me. So I'd need to remember to download them after I get home.

Also, even a bigger problem is trying to keep your old games up to date, tracking what GOG has updated, what files have changed etc. Especially this is much easier with e.g. gogrepo.py, it does all that crosschecking for you, even for updated items that GOG may have updated silently, without setting an update flag (or then you have accidentally removed that flag yourself by checking the game files without downloading them).

Third thing, gogrepo.py offers an easy way to check the integrity of all your GOG files, so that they haven't become corrupted at any point. That's quite handy too.

avatar
cogadh: I think GOG's new two-factor authentication breaks it (if you have it enabled). After I turned it on, the script fails at login.
Disable it when you want to run the script without existing cookies, and enable it back after you're done, if you want. Problem solved. :)

Good thing GOG made that feature optional, I was expecting it might affect these tools, including GOG's own legacy Downloader which they don't support anymore. Maybe the gogrepo script could also be modified to work even with the two-step login, by prompting the user for the code in case you don't have valid cookies yet?
Post edited March 11, 2016 by timppu