Git Product home page Git Product logo

Comments (6)

jjeejj avatar jjeejj commented on June 11, 2024

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

from geektime2pdf.

BakumanP avatar BakumanP commented on June 11, 2024

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

from geektime2pdf.

GarinZ avatar GarinZ commented on June 11, 2024

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

from geektime2pdf.

John520 avatar John520 commented on June 11, 2024

我也遇到这个问题了,我只下载了一篇。尝试了 @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'
};

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

from geektime2pdf.

John520 avatar John520 commented on June 11, 2024

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

from geektime2pdf.

Lianghuajian avatar Lianghuajian commented on June 11, 2024

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

from geektime2pdf.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.