Exact command is "pip install -r requirements.txt"
+Next, edit cloudlink.py to do the following:
+* Set your JWT and USER ID
+* Set the destination path for the downloads
+* Set the desired range of years to check
+
Then run "python cloudlink.py"
That will download all the recordings wherever you specify.
}
# Put your own download path here, I used an external hard drive so mine will differ from yours
-PATH = '/Volumes/Ext3/Zoom/'
+PATH = '/media/rhett/Seagate Portable Drive/VAM_2021/'
def main():
- for year in range(2018,2022):
+ for year in range(2021,2022):
for month in range(1,13):
next_month = month + 1
next_year = year
# print(data['to'])
for meeting in data['meetings']:
- os.mkdir('{}{}'.format(PATH, meeting['id']))
+ if not os.path.isdir('{}{}'.format(PATH, meeting['id'])):
+ os.mkdir('{}{}'.format(PATH, meeting['id']))
for record in meeting['recording_files']:
if 'status' in record and record['status'] != 'completed':
continue
- download_recording(
+ download_recording(
record['download_url'],
record['recording_start'].replace(':','-'),
record['file_type'],
suffix = 'JSON'
suffix = suffix.lower()
local_filename = '{}/{}/{}_{}.{}'.format(PATH, meeting_id, filename, filetype, suffix)
+ if os.path.isfile(local_filename):
+ print ('file {} exists, skipping download!'.format(local_filename))
+ else:
+ with open(local_filename, 'wb') as f:
+ for chunk in response.iter_content(chunk_size=8192):
+ print (len(chunk))
+ f.write(chunk)
- with open(local_filename, 'wb') as f:
- for chunk in response.iter_content(chunk_size=8192):
- print (len(chunk))
- f.write(chunk)
-
if __name__ == '__main__':
main()