diff --git a/scripts/get_train_and_benchmark_data.sh b/scripts/get_train_and_benchmark_data.sh index 972bef79..5c4eb26e 100755 --- a/scripts/get_train_and_benchmark_data.sh +++ b/scripts/get_train_and_benchmark_data.sh @@ -13,12 +13,11 @@ fi fileid="1IDjXFnNnHf__MO5j_onw4YwR97oS8lAy" filename="data/train_and_benchmark_data.zip" -curl -c ./cookie -s -L "https://drive.google.com/uc?export=download&id=${fileid}" > /dev/null -curl -Lb ./cookie "https://drive.google.com/uc?export=download&confirm=`awk '/download/ {print $NF}' ./cookie`&id=${fileid}" -o ${filename} -rm cookie +html=`curl -c ./cookie -s -L "https://drive.google.com/uc?export=download&id=${fileid}"` +curl -Lb ./cookie "https://drive.google.com/uc?export=download&`echo ${html}|grep -Po '(confirm=[a-zA-Z0-9\-_]+)'`&id=${fileid}" -o ${filename} unzip -d $benchmark_data_folder $filename rm $filename mv $benchmark_data_folder/data/* $benchmark_data_folder/ -rm -r $benchmark_data_folder/data/ \ No newline at end of file +rm -r $benchmark_data_folder/data/