The "sharing url" obtained for Google Colab links to a file with lots of extra HTML, so when you try to download it using wget or curl, you don't get a valid Jupyter .ipynb file.
How does one go about obtaining the file itself using command-line tools such as wget or curl? (Note: I'm talking about "public" sharing URLs, where "anyone with the URL can view". And I'd rather not have to use specialized google-drive command-line API tools that may require authentication, etc.)
GitHub has a "raw" button you can press that'll give you a valid URL for downloading Jupyter notebook files, but I don't see any such thing in Colab. Maybe there's some kind of "?form=raw
" thing one can add to the URL?
Alternatively, is a there a recommended script for stripping out all the extra HTML and just leaving the JSON for the .ipynb file?
Clarification: I'm not talking about manually moving the mouse inside Colab and clicking "File > Download > Download ipynb"; that's easy! I'm talking about programatically getting the file using the "sharing URL".