mmzou / geektime-dl

👾 Geektime-dl 是使用Go构建的快速、简单的极客时间下载器,支持专栏下载为PDF文档。
MIT License
552 stars 168 forks source link

下载报错:unknown PrivateNetworkRequestPolicy value #66

Closed googlemeoften closed 2 years ago

googlemeoften commented 2 years ago

2022/02/28 18:27:48 ERROR: could not unmarshal event: unknown PrivateNetworkRequestPolicy value 2022/02/28 18:27:48 ERROR: could not unmarshal event: unknown PrivateNetworkRequestPolicy value 2022/02/28 18:27:48 ERROR: could not unmarshal event: unknown PrivateNetworkRequestPolicy value

yizems commented 2 years ago

修改源码 修改下这两个的版本号即可

    github.com/chromedp/cdproto v0.0.0-20220228194516-ead8cf59b1fa
    github.com/chromedp/chromedp v0.7.7
GreeyiSaEs commented 2 years ago

修改源码 修改下这两个的版本号即可

  github.com/chromedp/cdproto v0.0.0-20220228194516-ead8cf59b1fa
  github.com/chromedp/chromedp v0.7.7

下载pdf内容为空请问怎么解决呀

yizems commented 2 years ago

修改源码, 加延时, 增加延时, 顺便在下载pdf 之前, 都等待10秒, 因为 有限流策略

weiyongsheng commented 2 years ago

修改源码 修改下这两个的版本号即可

    github.com/chromedp/cdproto v0.0.0-20220228194516-ead8cf59b1fa
    github.com/chromedp/chromedp v0.7.7

下载pdf内容为空请问怎么解决呀

下载pdf内容为空的问题最新版本已经修复了。