mmzou / geektime-dl Goto Github PK
View Code? Open in Web Editor NEW👾 Geektime-dl 是使用Go构建的快速、简单的极客时间下载器,支持专栏下载为PDF文档。
License: MIT License
👾 Geektime-dl 是使用Go构建的快速、简单的极客时间下载器,支持专栏下载为PDF文档。
License: MIT License
windows下载的PDF好多文件为空的,-s类型参数怎么用的,可以不是pdf格式吗?
github.com/mmzou/geektime-dl/cli/cmds
../go/src/github.com/mmzou/geektime-dl/cli/cmds/cmds.go:50:15: cannot use cli.BoolFlag literal (type cli.BoolFlag) as type cli.Flag in slice literal:
cli.BoolFlag does not implement cli.Flag (Apply method has pointer receiver)
../go/src/github.com/mmzou/geektime-dl/cli/cmds/cmds.go:55:15: cannot use cli.BoolFlag literal (type cli.BoolFlag) as type cli.Flag in slice literal:
cli.BoolFlag does not implement cli.Flag (Apply method has pointer receiver)
../go/src/github.com/mmzou/geektime-dl/cli/cmds/cmds.go:60:17: cannot use cli.StringFlag literal (type cli.StringFlag) as type cli.Flag in slice literal:
cli.StringFlag does not implement cli.Flag (Apply method has pointer receiver)
../go/src/github.com/mmzou/geektime-dl/cli/cmds/cmds.go:79:8: invalid argument c.Args() (type cli.Args) for len
../go/src/github.com/mmzou/geektime-dl/cli/cmds/download.go:31:11: c.Parent undefined (type *cli.Context has no field or method Parent)
../go/src/github.com/mmzou/geektime-dl/cli/cmds/login.go:46:19: cannot use cli.StringFlag literal (type cli.StringFlag) as type cli.Flag in slice literal:
cli.StringFlag does not implement cli.Flag (Apply method has pointer receiver)
../go/src/github.com/mmzou/geektime-dl/cli/cmds/login.go:51:19: cannot use cli.StringFlag literal (type cli.StringFlag) as type cli.Flag in slice literal:
cli.StringFlag does not implement cli.Flag (Apply method has pointer receiver)
../go/src/github.com/mmzou/geektime-dl/cli/cmds/login.go:56:19: cannot use cli.StringFlag literal (type cli.StringFlag) as type cli.Flag in slice literal:
cli.StringFlag does not implement cli.Flag (Apply method has pointer receiver)
../go/src/github.com/mmzou/geektime-dl/cli/cmds/login.go:61:19: cannot use cli.StringFlag literal (type cli.StringFlag) as type cli.Flag in slice literal:
cli.StringFlag does not implement cli.Flag (Apply method has pointer receiver)
../go/src/github.com/mmzou/geektime-dl/cli/cmds/login.go:66:19: cannot use cli.StringFlag literal (type cli.StringFlag) as type cli.Flag in slice literal:
cli.StringFlag does not implement cli.Flag (Apply method has pointer receiver)
../go/src/github.com/mmzou/geektime-dl/cli/cmds/login.go:66:19: too many errors
正在生成文件:【19 - 总结(一):微服务设计和拆分要坚持哪些原则?.pdf】 失败2, err=context deadline exceeded
正在生成文件:【20 - 总结(二):分布式架构关键设计10问.pdf】 失败2, err=context deadline exceeded
正在生成文件:【结束语 - 所谓高手,就是跨过坑和大海!.pdf】 失败2, err=context deadline exceeded
正在生成文件:【基于DDD的微服务设计实例代码详解.pdf】 失败2, err=context deadline exceeded
正在生成文件:【抽奖|《DDD实战课》沉淀成书了,感谢有你!.pdf】 失败2, err=context deadline exceeded
正在生成文件:【期末测试 - 有关DDD的内容,你掌握了多少呢?.pdf】 失败2, err=context deadline exceeded
FATA[0361] context deadline exceeded
目前好像只有专栏和视频课的可以下载,能不能看到训练营的课程视频?
go get后该执行什么 geektime-dl 命令不存在
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x38 pc=0x157a27b]
goroutine 60 [running]:
github.com/mmzou/geektime-dl/cli/cmds.extractVideoDownloadData.func1(0xc0002a4a50, 0xc0000b9040, 0xc00019e0f0)
/home/miaoke/go/src/github.com/mmzou/geektime-dl/cli/cmds/download.go:213 +0xcb
created by github.com/mmzou/geektime-dl/cli/cmds.extractVideoDownloadData
/home/miaoke/go/src/github.com/mmzou/geektime-dl/cli/cmds/download.go:207 +0x772
FFmpeg如何使用有知道的吗
下载video时候报错
$geektime-dl 160
D:>geektime-dl 265
panic: runtime error: index out of range [0] with length 0
goroutine 1 [running]:
github.com/mmzou/geektime-dl/downloader.Download(0x2bd2f, 0xc00050cb20, 0x11, 0xaa0069, 0x6, 0x1, 0xc00009c450, 0x0, 0x0, 0x0, ...)
/home/miaoke/go/src/github.com/mmzou/geektime-dl/downloader/downloader.go:43 +0xb45
github.com/mmzou/geektime-dl/cli/cmds.downloadAction(0xc0001309a0, 0x0, 0xc0001fce20)
/home/miaoke/go/src/github.com/mmzou/geektime-dl/cli/cmds/download.go:72 +0x6fc
github.com/urfave/cli.HandleAction(0x9d3280, 0xaca0e8, 0xc0001309a0, 0xc0001309a0, 0x0)
/home/miaoke/go/pkg/mod/github.com/urfave/[email protected]/app.go:526 +0x121
github.com/urfave/cli.Command.Run(0xa9d678, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xa9d678, 0x0, 0xa9d678, ...)
/home/miaoke/go/pkg/mod/github.com/urfave/[email protected]/command.go:174 +0x581
github.com/mmzou/geektime-dl/cli/cmds.DefaultAction(0xc000130840, 0x0, 0x0)
/home/miaoke/go/src/github.com/mmzou/geektime-dl/cli/cmds/cmds.go:86 +0x10b
github.com/urfave/cli.HandleAction(0x9d3280, 0xaca0c8, 0xc000130840, 0x0, 0x0)
/home/miaoke/go/pkg/mod/github.com/urfave/[email protected]/app.go:526 +0x121
github.com/urfave/cli.(*App).Run(0xc00015a540, 0xc0000044c0, 0x2, 0x2, 0x0, 0x0)
/home/miaoke/go/pkg/mod/github.com/urfave/[email protected]/app.go:288 +0x650
main.main()
/home/miaoke/go/src/github.com/mmzou/geektime-dl/main.go:30 +0x4ce
使用geektime-dl 下载好后,在执行 ffmpeg时 发现本地没有安装 导致执行失败了。
后来重新安装了ffmpeg了,现在执行 ffmpeg的什么命令 可以对 下载好的视频分片文件 进行整合呢
已经下载完,在生成pdf阶段,前面能成功生成pdf,到某个章节就报错了,然后后面一直都是失败的直到结束,正在生成文件:【39 - 回溯算法:从电影《蝴蝶效应》中学习回溯算法的核心**.pdf】 失败
FATA[0003] encountered exception 'Uncaught' (1:40)
geektime-dl 180
level=fatal msg="open 深入拆解Tomcat & Jetty \MP3\开篇词 - Java程序员如何快速成长?.mp4.mp3.download: The system cannot find the path specified."
似乎不支持每日一课的下载,不知道大佬能不能开发一下
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x38 pc=0x15f8a8e]
goroutine 31 [running]:
github.com/mmzou/geektime-dl/cli/cmds.extractVideoDownloadData.func1(0xc00022b730, 0xc000302320, 0xc0004a4000)
/Users/jesse/go/pkg/mod/github.com/mmzou/[email protected]/cli/cmds/download.go:213 +0xce
created by github.com/mmzou/geektime-dl/cli/cmds.extractVideoDownloadData
/Users/jesse/go/pkg/mod/github.com/mmzou/[email protected]/cli/cmds/download.go:207 +0x7a8
一开始都可以登录并下载成功视频课的,可突然下载一半就下载不了了,试了很多次重启电脑也不行了,执行geektime-dl 190报错:
panic: runtime error: index out of range [0] with length 0
goroutine 1 [running]:
github.com/mmzou/geektime-dl/downloader.Download(0x17bb2, 0x11f45f60, 0x11, 0x568392, 0x6, 0x1, 0x1200a240, 0x0, 0x0, 0x0, ...)
/home/miaoke/go/src/github.com/mmzou/geektime-dl/downloader/downloader.go:43 +0x8dd
github.com/mmzou/geektime-dl/cli/cmds.downloadAction(0x11c24420, 0x11c0fa00, 0x0)
/home/miaoke/go/src/github.com/mmzou/geektime-dl/cli/cmds/download.go:72 +0x57a
github.com/urfave/cli.HandleAction(0x4c3d00, 0x592594, 0x11c24420, 0x11c24420, 0x0)
/home/miaoke/go/pkg/mod/github.com/urfave/[email protected]/app.go:526 +0xe3
github.com/urfave/cli.Command.Run(0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
/home/miaoke/go/pkg/mod/github.com/urfave/[email protected]/command.go:174 +0x4a4
github.com/mmzou/geektime-dl/cli/cmds.DefaultAction(0x11c24370, 0x0, 0x0)
/home/miaoke/go/src/github.com/mmzou/geektime-dl/cli/cmds/cmds.go:86 +0xac
github.com/urfave/cli.HandleAction(0x4c3d00, 0x592584, 0x11c24370, 0x0, 0x0)
/home/miaoke/go/pkg/mod/github.com/urfave/[email protected]/app.go:526 +0xe3
github.com/urfave/cli.(*App).Run(0x11c01420, 0x11c0c040, 0x2, 0x2, 0x0, 0x0)
/home/miaoke/go/pkg/mod/github.com/urfave/[email protected]/app.go:288 +0x575
main.main()
/home/miaoke/go/src/github.com/mmzou/geektime-dl/main.go:30 +0x3f0
运行环境:macos 10.14.5 (18F132)、geektime-dl version dev
谢谢!
GeekTime中有一个课程可以下载前35个视频,第36到最后一个都无法下载。
不知道是不是编码问题导致的。
id号为272,视频的ID号为226756,之前可以下载的ID号都为205635以下,不知道是不是后期上传的视频编码与之前的不一样导致的。
可以提供帐号与密码对此视频进行测试。
全是报错,可不可以指定命令不要生成PDF呢?
正在生成文件:【�[37;1m开篇词 - 跑步,不那么简单的事儿.pdf�[0m】 �[31;1m失败2, err=context deadline exceeded�[0m
正在生成文件:【�[37;1m01 - 跑两步就喘了,是不是我不适合跑步?.pdf�[0m】 �[31;1m失败2, err=context deadline exceeded�[0m
正在生成文件:【�[37;1m02 - 正确的跑步姿势是什么样的?.pdf�[0m】
下载了课程,但是FFmpeg没用被调用,造成一个问题,10秒一个文件,几万个文件,Windows 10-64 bits
login --country 1 --phone xxx --password xxx
➜ ~ go get github.com/mmzou/geektime-dl
go/src/github.com/mmzou/geektime-dl/cli/cmds/cmds.go:50:15: cannot use cli.BoolFlag literal (type cli.BoolFlag) as type cli.Flag in slice literal:
cli.BoolFlag does not implement cli.Flag (Apply method has pointer receiver)
go/src/github.com/mmzou/geektime-dl/cli/cmds/cmds.go:55:15: cannot use cli.BoolFlag literal (type cli.BoolFlag) as type cli.Flag in slice literal:
cli.BoolFlag does not implement cli.Flag (Apply method has pointer receiver)
go/src/github.com/mmzou/geektime-dl/cli/cmds/cmds.go:60:17: cannot use cli.StringFlag literal (type cli.StringFlag) as type cli.Flag in slice literal:
cli.StringFlag does not implement cli.Flag (Apply method has pointer receiver)
go/src/github.com/mmzou/geektime-dl/cli/cmds/cmds.go:79:8: invalid argument c.Args() (type cli.Args) for len
go/src/github.com/mmzou/geektime-dl/cli/cmds/download.go:31:11: c.Parent undefined (type *cli.Context has no field or method Parent)
go/src/github.com/mmzou/geektime-dl/cli/cmds/login.go:46:19: cannot use cli.StringFlag literal (type cli.StringFlag) as type cli.Flag in slice literal:
cli.StringFlag does not implement cli.Flag (Apply method has pointer receiver)
go/src/github.com/mmzou/geektime-dl/cli/cmds/login.go:51:19: cannot use cli.StringFlag literal (type cli.StringFlag) as type cli.Flag in slice literal:
cli.StringFlag does not implement cli.Flag (Apply method has pointer receiver)
go/src/github.com/mmzou/geektime-dl/cli/cmds/login.go:56:19: cannot use cli.StringFlag literal (type cli.StringFlag) as type cli.Flag in slice literal:
cli.StringFlag does not implement cli.Flag (Apply method has pointer receiver)
go/src/github.com/mmzou/geektime-dl/cli/cmds/login.go:61:19: cannot use cli.StringFlag literal (type cli.StringFlag) as type cli.Flag in slice literal:
cli.StringFlag does not implement cli.Flag (Apply method has pointer receiver)
go/src/github.com/mmzou/geektime-dl/cli/cmds/login.go:66:19: cannot use cli.StringFlag literal (type cli.StringFlag) as type cli.Flag in slice literal:
cli.StringFlag does not implement cli.Flag (Apply method has pointer receiver)
go/src/github.com/mmzou/geektime-dl/cli/cmds/login.go:66:19: too many errors
直接下载课程的话,一直在不同章节间跳来跳去,但是不会下载。
指定章节下载的话,就说路径找不到。。
我查了一下,好像是路径中有空格的问题。
有好的解决办法吗?
如题,现在默认下载的是标清,能选择下载高清吗?
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xc0000005 code=0x0 addr=0x1c pc=0x53b2e2]
goroutine 15 [running]:
github.com/mmzou/geektime-dl/cli/cmds.extractVideoDownloadData.func1(0x121b7648, 0x121c82a0, 0x12195a80)
C:/Users/EDZ/go/pkg/mod/github.com/mmzou/[email protected]/cli/cmds/download.go:213 +0xb2
created by github.com/mmzou/geektime-dl/cli/cmds.extractVideoDownloadData
C:/Users/EDZ/go/pkg/mod/github.com/mmzou/[email protected]/cli/cmds/download.go:207 +0x5a8
panic: runtime error: index out of range [0] with length 0
goroutine 1 [running]:
github.com/mmzou/geektime-dl/downloader.Download(0x2bd2f, 0xc0002ead00, 0x11, 0xaa0069, 0x6, 0x1, 0xc000288480, 0x0, 0x0, 0x0, ...)
/home/miaoke/go/src/github.com/mmzou/geektime-dl/downloader/downloader.go:43 +0xb45
github.com/mmzou/geektime-dl/cli/cmds.downloadAction(0xc0000f09a0, 0x0, 0xc0001c0e10)
/home/miaoke/go/src/github.com/mmzou/geektime-dl/cli/cmds/download.go:72 +0x6fc
github.com/urfave/cli.HandleAction(0x9d3280, 0xaca0e8, 0xc0000f09a0, 0xc0000f09a0, 0x0)
/home/miaoke/go/pkg/mod/github.com/urfave/[email protected]/app.go:526 +0x121
github.com/urfave/cli.Command.Run(0xa9d678, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xa9d678, 0x0, 0xa9d678, ...)
/home/miaoke/go/pkg/mod/github.com/urfave/[email protected]/command.go:174 +0x581
github.com/mmzou/geektime-dl/cli/cmds.DefaultAction(0xc0000f0840, 0x0, 0x0)
/home/miaoke/go/src/github.com/mmzou/geektime-dl/cli/cmds/cmds.go:86 +0x10b
github.com/urfave/cli.HandleAction(0x9d3280, 0xaca0c8, 0xc0000f0840, 0x0, 0x0)
/home/miaoke/go/pkg/mod/github.com/urfave/[email protected]/app.go:526 +0x121
github.com/urfave/cli.(*App).Run(0xc00011c540, 0xc000096440, 0x2, 0x2, 0x0, 0x0)
/home/miaoke/go/pkg/mod/github.com/urfave/[email protected]/app.go:288 +0x650
main.main()
/home/miaoke/go/src/github.com/mmzou/geektime-dl/main.go:30 +0x4ce
PDF 下载下来都是乱码,怎么解决
| 2 | 102659 | 视频 | 03 Elasticsearch简介及其发展历史 | 31.37M | 30.05M | 31.03M | ✔ |
| 3 | 102660 | 视频 | 04 | Elastic Stack家族成员及其应用场景 | 37.84M | 36.94M | 37.87M | ✔ |
比如这样的04课程后面的名字有空格或tab.下载时提示 The filename, directory name, or volume label syntax is incorrect.
您好,我没有找到哪里能有生成pdf的选项,大佬求指导。。
我的教室:----https://u.geekbang.org/schedule 里面的课程目前没有支持下载,是否能帮忙新增支持这个模块的下载,万分感谢!
下载课程时,MP3文件全部下载完成,PDF输出全部失败,ffmpeg已经安装,提示:
FATA[0204] encountered exception 'Uncaught' (1:40)
.mp4.mp3
geektime-dl 264
level=fatal msg="CreateFile 性能测试实战30讲\MP3\09丨\b关联和断言:一动一静,核心都是在取数据.mp4: The filename, directory name, or volume label syntax is incorrect."
panic: runtime error: index out of range [0] with length 0
goroutine 1 [running]:
github.com/mmzou/geektime-dl/downloader.Download(0x3e3ac, 0xc000296c60, 0x20, 0x16a9034, 0x6, 0x1, 0xc000293230, 0x0, 0x0, 0x0, ...)
/home/miaoke/go/src/github.com/mmzou/geektime-dl/downloader/downloader.go:43 +0xb3e
github.com/mmzou/geektime-dl/cli/cmds.downloadAction(0xc00022e160, 0x0, 0xc000206b10)
/home/miaoke/go/src/github.com/mmzou/geektime-dl/cli/cmds/download.go:72 +0x6f5
github.com/urfave/cli.HandleAction(0x15d7800, 0x16d2080, 0xc00022e160, 0xc00022e160, 0x0)
/home/miaoke/go/pkg/mod/github.com/urfave/[email protected]/app.go:526 +0x11a
github.com/urfave/cli.Command.Run(0x16a6698, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x16a6698, 0x0, 0x16a6698, ...)
/home/miaoke/go/pkg/mod/github.com/urfave/[email protected]/command.go:174 +0x57a
github.com/mmzou/geektime-dl/cli/cmds.DefaultAction(0xc00022e000, 0x0, 0x0)
/home/miaoke/go/src/github.com/mmzou/geektime-dl/cli/cmds/cmds.go:86 +0x104
github.com/urfave/cli.HandleAction(0x15d7800, 0x16d2060, 0xc00022e000, 0x0, 0x0)
/home/miaoke/go/pkg/mod/github.com/urfave/[email protected]/app.go:526 +0x11a
github.com/urfave/cli.(*App).Run(0xc000218380, 0xc000098180, 0x3, 0x3, 0x0, 0x0)
/home/miaoke/go/pkg/mod/github.com/urfave/[email protected]/app.go:288 +0x649
main.main()
/home/miaoke/go/src/github.com/mmzou/geektime-dl/main.go:30 +0x4c7
➜ Downloads
下载某课程的时候,部分视频不能下载,出现如何的错误
59 - 神经网络的训练:新的PyTorch训练框架 0 B / 312.92 MiB [-------------------------------------------------------------------------------------------------------------------------------------] 0.00% 0s
60 - Transformer:如何通过Transformer榨取重要变量? 0 B / 243.33 MiB [--------------------------------------------------------------------------------------------------------------------------] 0.00% 0s
61 - Transformer代码实现剖析 0 B / 208.96 MiB [-------------------------------------------------------------------------------------------------------------------------------------------------] 0.00% 0s
63 - xDeepFM的代码解析 0 B / 124.41 MiB [-------------------------------------------------------------------------------------------------------------------------------------------------------] 0.00% 0s
68 - 高级模型融合技巧:Metades是什么? 0 B / 115.13 MiB [---------------------------------------------------------------------------------------------------------------------------------------] 0.00% 0s
73 - 深度迁移学习模型:ALBERT和ELECTRA 0 B / 70.09 MiB [----------------------------------------------------------------------------------------------------------------------------------------] 0.00% 0s
74 - 深度迁移学习模型的微调:如何使用TensorFlow在TPU对模型进行微调 0 B / 160.01 MiB [-----------------------------------------------------------------------------------------------------------] 0.00% 0s
75 - 深度迁移学习模型的微调:TensorFlow BERT代码简析 0 B / 233.46 MiB [-------------------------------------------------------------------------------------------------------------------------] 0.00% 0s
76 - 深度迁移学习的微调:如何利用PyTorch实现深度迁移学习模型的微调及代码简析 0 B / 106.41 MiB [-------------------------------------------------------------------------------------------------] 0.00% 0s
78 - 优化器:Lookahead,Radam和Lamb 0 B / 49.51 MiB [-------------------------------------------------------------------------------------------------------------------------------------------] 0.00% 0s
81 - UDA:一种系统的数据扩充框架 0 B / 97.75 MiB [----------------------------------------------------------------------------------------------------------------------------------------------] 0.00% 0s
82 - Label Smoothing和Logit Squeezing 0 B / 68.75 MiB [-----------------------------------------------------------------------------------------------------------------------------------------] 0.00% 0s
83 - 底层模型拼接:如何让不同的语言模型融合在一起从而达到更好的效果? 0 B / 65.80 MiB [---------------------------------------------------------------------------------------------------------] 0.00% 0s
FATA[0005] exit status 1
ffmpeg version 4.2.2 Copyright (c) 2000-2019 the FFmpeg developers
built with gcc 8 (Debian 8.3.0-6)
configuration: --disable-x86asm
libavutil 56. 31.100 / 56. 31.100
libavcodec 58. 54.100 / 58. 54.100
libavformat 58. 29.100 / 58. 29.100
libavdevice 58. 8.100 / 58. 8.100
libavfilter 7. 57.100 / 7. 57.100
libswscale 5. 5.100 / 5. 5.100
libswresample 3. 5.100 / 3. 5.100
59 - 神经网络的训练:新的PyTorch训练框架.txt: Invalid data found when processing input
| 3 | 102660 | 视频 | 04 | Elastic Stack家族成员及其应用场景 | 37.87M | 37.84M | 36.94M |
比如04后面课程名称,有空格或tab.报错
time="2020-06-09T10:51:25+08:00" level=fatal msg="CreateFile Elasticsearch核心技术与实战\MP4\04 -\tElastic Stack家族成员及其应用场景.mp4: The filename, directory name, or volume label syntax is incorrect."
下载的mp3文件正常,pdf不正常。环境:ubuntu18.04,go1.10.1,直接下载release中0.2.3版本的二进制文件。
win10上chromedp的文档可以写的详细一些,在使用中出现一些问题。生成PDF的时候会跳出很多窗口,并没有实现headless模式。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.