Download course assignments from coursera (deeplearning.ai)


Download course assignments from coursera (in my case deeplearning.ai course assignments)

First, try instructions listed here:
https://learner.coursera.help/hc/en-us/articles/360004990332-Download-Jupyter-Workspace-files

If that doesn't work because of network error, then try splitting it, as suggested in this post:
https://www.reddit.com/r/learnmachinelearning/comments/7er5ps/coursera_downloading_all_the_assignments_jupyter/


Even with that, the file size limit of about 5Mb will still exist.
To increase the file size limit to about 15 Mb , include the word 'out' in archive file name or create a folder named 'out' and move the archive file or parts into it.
This is a weird hack.

Disclaimer: I have not tested this thoroughly. May not work always.

How did I think about it?
There's a folder /scripts on the coursera virtual machine.
Read file setup_files.py (using cat setup_files.py)

This file contains the function:
def should_clobber(source, dest):
    """
    Return true for any file that should be clobbered when the workspace loads
    Instructor may override this with their own definition.
    For deep learning courses, ignore output files, those with 'out' in their path.
    """
    if "out" in dest:
        return False
    suffixes = [".png", ".jpg", ".h5", ".csv", ".mp4", ".mat", ".gif", ".txt", "LICENSE", ".otf"]
    return any(dest.endswith(suffix) for suffix in suffixes)

That evidence is definitely not enough to think that it will work. But in my case this turned out to be a savior!

#coursera #machinelearning #deeplearning #deeplearning.ai #download_assignments #FailedNetworkError



Comments