Use gogrepo! With that tool you can download a
gog-manifest.dat file that contains all informations about your library, all purchases, all games, all downloads, checksums and so on. The informations are stored in Python syntax (a huge list with other lists and dictionaries inside), so you can import these informations in a python script easily with:
from ast import literal_eval
manifest = literal_eval(open('gog-manifest.dat').read())
for index, game in enumerate(manifest): print index + 1, game['long_title'] That little script above prints all your purchased games:
1 1954 Alcatraz
2 80 Days
3 A Bird Story
4 A Golden Wake
5 A New Beginning: Final Cut
6 Agatha Christie - The ABC Murders
7 Age of Wonders
8 Age of Wonders 2: The Wizard's Throne
9 Age of Wonders 3
10 ...
https://www.gog.com/forum/general/gogrepopy_python_script_for_regularly_backing_up_your_purchased_gog_collection_for_full_offline_e/page1