下载Coursera-notebooks全部作业文件coursera notebooks下载

Context: I am already using coursera-dl to download the videos and it works great, but I missed an analogous tool for the assignments.

GREAT NEWS!

I have just found a way to download all the assignment files from the coursera-notebook hub.

This saved me hours of painful single file downloading:

(adapted from here )

  1. Go to the home of the coursera-notebook hub

  2. Create a new python notebook

  3. Execute !tar cvfz allfiles.tar.gz * in a cell

  4. Download the archive !

Enjoy!

If the resulting archive is too big and you can't download it

Open the python notebook where you executed last command and execute the following in a cell:

!split -b 200m allfiles.tar.gz allfiles.tar.gz.part.

This will split the archive into 200Mb blocks that you can download without a problem (if there is still a problem reduce the size by changing 200m to a lower value)

Then when you have downloaded all the split files reunite them on your system using the following command line (in a linux environment, or use cmder if you are on Windows):

cat allfiles.tar.gz.part.* > allfiles.tar.gz

PS: This is in fact valid in any Jupyter-notebook hub


亲测可用,另外在windows系统,拼接文件用type指令,具体可以搜索type cmd进行操作。

如果文件大,可以按50mb来下载,这样一般就没错了,另外也可以直接搜我上传到csdn的文件,省得费劲去从coursera下载。


  • 3
    点赞
  • 7
    收藏
    觉得还不错? 一键收藏
  • 6
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 6
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值