Last active
May 11, 2023 19:46
-
-
Save Momoumar/26c73af0adcd2df05555f4a3b2d6ebc6 to your computer and use it in GitHub Desktop.
Download all programming assignments Notebook. #Coursera #DeepLearning.ai #Jupyter #Python
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#To download all your programming assignments including all files and notebooks, follow these steps: | |
#1 - Go to the root tree folder for instance: https://hub.coursera-notebooks.org/user/${user_token}/tree/ | |
#2- Open the terminal by clicking the + button on the right-hand corner | |
#3 - Enter the following command in the terminal: | |
tar cvfz allassignments.tar.gz * | |
#4 - The previous command will create a zip named allassignments containing all your programmings assignment | |
#5 - Select allassignments.tar.gz and download | |
#6 - Enjoy, don't forget to delete it afterward ;-) |
Thanks for this solution. It is supremely useful.
There is an npy file which is not getting downloaded even after tar-gz, most likely because of its size. Is there another better compression that will help?
Split into multiple 50MB files
split -b 50m allassignments.tar.gz allassignments.tar.gz.
3 major steps:
-
Compress the directory with assignments and split the archive into batches:
tar cvfzh allassignments.tar.gz * | split -b 100M allassignments.tar.gz "allassignments.tar.gz.part"
-
Download all parts using Jupyter Notebook
-
Join all batches back to one file (on your local machine):
cat allassignments.tar.gz.part* > allassignments.tar.gz
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Can you tell me how to do that. It won't download my file because "the server took too long to respond".
I want to download everything, so how do I split up the final zip file?