Multiple files from google drive

broken image
broken image

#!/usr/bin/python ''' A quick python script to automate curl->googledrive interfacing This should require nothing more than the system python version and curl. It should require no new dependencies provided curl already exists on the system. We start by creating a new file with nano curlgoogle and enter the following code - remember to add your own personal auth token! Python 2.7 has been chosen as this is still the default python version on older systems, however the script below should also run for python 3. Here we can provide a group of files, it zips them up and then sends them to google drive. Now we know our commands work we can create an executable script to do all the work for us.