Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

无法正常使用,没有报错,但是每个专栏只下载到少数几篇文章 #25

Open
diesang opened this issue Nov 25, 2020 · 6 comments

Comments

@diesang
Copy link

diesang commented Nov 25, 2020

专栏是已经付费购买了的,参数指定的是用firstArticalId指定了第一篇文章。
比如技术管理案例课这个,一共20多讲,但运行完下载回来只有“开篇词”、“结束语”两个pdf

@jjeejj
Copy link
Owner

jjeejj commented Nov 26, 2020

使用是没问题的,请检查一下你的配置信息

@BakumanP
Copy link

BakumanP commented Nov 27, 2020

@diesang 我刚去看了《技术管理案例课》我感觉是文章中title里有“ |” 所以是报错了。我的下载的《重学前端》也遇到了这个问题。你可以尝试下改成 let useArticleTtle = columnArticle.article_title.replace(/\//g, '-').replace(/\|+/g, '-');会解决我的问题

@GarinZ
Copy link

GarinZ commented Dec 3, 2020

@diesang 话说cookie这一项是不是没有填写?

@John520
Copy link

John520 commented Oct 25, 2021

我也遇到这个问题了,我只下载了一篇。尝试了 @BakumanP 的方法好像没有生效, @GarinZ 我的cookie 也是配置了的
@jjeejj 我的配置如下

module.exports = {
    url: 'https://time.geekbang.org/serv/v1/article',
    commentUrl: 'https://time.geekbang.org/serv/v1/comments',
    columnBaseUrl: 'https://time.geekbang.org/column/article/',
    columnName: '分布式协议与算法实战',
    firstArticalId: 195652, //专栏第一篇文章的ID
    //articalIds: [201700,202772,204472,205784],  //指定下载的articalId, 优先级更高, 配置后firstArticalId配置将失效
    isdownloadVideo: false, // 是否下载音频
    isComment: true, // 是否导出评论
    cookie: '我自己的cookie'
};

请问我需要如何排查我的问题呢

@John520
Copy link

John520 commented Oct 25, 2021

debug 代码发现是我的cookie不对,我获取的cookie 是从document.cookie 获取的,和chrome F12 中network 里的artical 中的请求的cookie 有些不一样,替换或就行了。

@Lianghuajian
Copy link

Lianghuajian commented Jan 28, 2024

cookie 问题看这个 issue21 要抓包获取 header 的 cookie

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants