diff --git a/examples/zeshel/get_zeshel_data.sh b/examples/zeshel/get_zeshel_data.sh index 82f54be2..a054cc2f 100644 --- a/examples/zeshel/get_zeshel_data.sh +++ b/examples/zeshel/get_zeshel_data.sh @@ -13,9 +13,8 @@ fi fileid="1ZcKZ1is0VEkY9kNfPxIG19qEIqHE5LIO" filename="zeshel.tar.bz2" -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} tar -xf $filename -C $zeshel_data_folder rm ${filename}