
Create authorized http object.Ĭlient = discovery. It has a function for listing objects that takes a prefix parameter, which you could use to check for a certain directory and its children in this manner: from apiclient import discovery

You may find it easier to work with the JSON API, which has a full-featured Python client. For the newer library, the equivalent to the below code is: from google.cloud import storageįor blob in client.list_blobs('bucketname', prefix='abc/myfolder'): Some of the options include the list of platforms (-platforms), playtime in minutes (-playtime), developers, publishers, genres and much more. Through the use of command line parameters, you can decide what data you want exported to the CSV.

Update: the below is true for the older "Google API Client Libraries" for Python, but if you're not using that client, prefer the newer "Google Cloud Client Library" for Python ( ). This script helps a user export their GOG Galaxy 2.0 Library.
