klappis: How do i install it?
gogrepo? This is how I did it yesterday on Windows 7/64bit, instructions partly from Brouer:
1. Install Python 3.x.x from
https://www.python.org/downloads/
- When you install it, make sure to tick the box for letting Python to be added to the PATH.
2. Get gogrepo from
https://github.com/eddie3/gogrepo - You can click on the green "Clone or download" button and select "Download ZIP", and then uncompress the zip file to a suitable place in your computer, e.g. C:\gogrepo\. There should be a subfolder "gogrepo-master" where you have the gogrepo.py script.
- For simplicity's sake, put gogrepo to the drive where you think you have enough room for your GOG game installers you are going to download. However, there are also options to download your installers to any other drives or paths.
3.
Optional: edit the gogrepo.py.
- This is not necessarily needed, but I'd edit gogrepo.py (with e.g. IDLE editor, that Python has installed on your PC) by changing the following value to 2:
HTTP_FETCH_DELAY = 2
It is 1 by default, but this is just to make even more certain that GOG will not temporarily block you because you are hammering their server with requests all the time. However, changing this to 2 makes the script slower when getting file details for the manifest file. It doesn't slow down actual downloads though.
4. Run preliminary things for gogrepo
- Open the command prompt (press the Windows key + R and type
cmd) and give these commands:
-
pip install html2text -
pip install html5lib -
cd \gogrepo\gogrepo-master (or in whichever folder you uncompressed the gogrepo.py script)
-
python gogrepo.py login (follow the instructions, if you have two-step login enabled, you have to get the verification code from your email and enter it here. This login needs to be done only once, in order to get valid login cookies for gogrepo.)
5. Run gogrepo.
In the command prompt, in the directory where the gogrepo.py is (e.g. c:\gogrepo\gogrepo-master\), you can run e.g. these commands:
-
python gogrepo.py update -os windows -lang en to get file details of English Windows versions of games into the manifest file. If you want file details also for linux and mac and other languages, you can add them too. GOG apparently knows these language codes: en cz da de es fr it hu nl no pl pt br ro fi sv tr ru ko cn jp. Note that this update step can take quite a long time so be patient, for me it takes something like 8-9 hours I think to get file details for all my over 1300 GOG games.
-
python gogrepo.py download This will download all the games and extras found in the manifest file to your current directory. Each game will be neatly in its own subdirectory, like age_of_wonders\ etc. You can also tell this command to download the games to some other drive/path, if your current drive doesn't have enough space for your GOG installers.
Check also other commands from the gogrepo page or readme file, especially "verify" and "clean". Also if you don't want to redownload the whole manifest file with the update command each and every time, check the -updateonly and -skipknown options. I personally choose to get the whole manifest file every time when I run gogrepo, just to make sure I get all changes that my GOG installers may have received, even silently without update notifications from GOG.
If you have to stop downloading for any reason (wanting to watch some Netflix movie, or your monthly data transfer quota is reached, or whatever), you can abort the script with Ctrl-C. When you are ready to continue, just run "python gogrepo.py download" again, it will skip all the files which were already fully downloaded, and redownload only those files which were not yet downloaded, or were downloaded only partially. It doesn't resume partially downloaded files, but downloads them all over again.