source: gs3-installations/intermuse/trunk/sites/intermuse/collect/performers/prepare/01-DOWNLOAD-SPREADSHEET.sh@ 36973

Last change on this file since 36973 was 36973, checked in by davidb, 17 months ago

Initial set of files for a collection which forms a 'document' for each performer in the IntermusE spreadsheet

  • Property svn:executable set to *
File size: 796 bytes
Line 
1#!/bin/bash
2
3doc_id=1Vhge61P_-bi2k5Vc7KZcks4eu1Aq_EqC
4
5tmp_cookie_filename=/tmp/gdrive-cookies-$$
6tmp_download_filename=/tmp/gdrive-download-$$.csv
7
8ofilename="intermuse-catalogue.csv"
9
10#curl -c $tmp_cookie_filename "https://drive.google.com/uc?export=download&id=$doc_id" > $tmp_download_filename
11
12#curl -L -b $tmp_cookie_filename \
13# "https://drive.google.com$(cat /tmp/gdrive-download-$$.csv | grep -Po 'uc-download-link" [^>]* href="\K[^"]*' | sed 's/\&/\&/g')" > $ofilename
14
15
16#rclone copy "gdrive-davidb:research/projects/InterMusE-project.lnk/Website files/HMS Catalogue.csv" HMS-Catalgoue.csv
17rclone copy "gdrive-davidb:research/projects/InterMusE-project.lnk/Website files/HMS Catalogue.xlsx" HMS-Catalgoue.xlsx
18
19# Digitised materials ready for digital archive/InterMusE_Images"
20
Note: See TracBrowser for help on using the repository browser.