My PostBuild Data in Github-Binder does not work. Instead of my CSV-Data, Binder shows HTML-Data in table form. What am I doing wrong?

44 views Asked by At

I'd like do use a medium .CSV-file (200 MB) in a jupyter-notebook on mybinder.org, which is saved on g**gle-drive. I am following the description on https://the-turing-way.netlify.app/communication/binder/zero-to-binder.html#medium-public-files and using

wget -q -O

When I use the link to the file from g**gle-drive, I don't get the .CSV-file but an .HTML-file. How do we get a direct URL to our .CSV-file, usable e.g. with wget?

1

There are 1 answers

0
Edo On

As my spreadsheet is larger than 200 MB I used "wget --load-cookies /tmp/cookies.txt "docs.google.com/uc?export=download&confirm=$(wget --quiet --save-cookies /tmp/cookies.txt --keep-session-cookies --no-check-certificate 'docs.google.com/uc?export=download&id=FILEID' -O- | sed -rn 's/.confirm=([0-9A-Za-z_]+)./\1\n/p')&id=FILEID" -O FILENAME && rm -rf /tmp/cookies.txt". And it is working fine now. Thank you for the valuable hints!