source: gs3-installations/intermuse/trunk/sites/intermuse/collect/programmes-and-performers/prepare/01-RCLONE-SPREADSHEET.sh@ 37222

Last change on this file since 37222 was 37222, checked in by davidb, 15 months ago

Expansion and rearrangement of PREPARE scripts

  • 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.