Comments (6)
使用是没问题的,请检查一下你的配置信息
from geektime2pdf.
@diesang 我刚去看了《技术管理案例课》我感觉是文章中title里有“ |” 所以是报错了。我的下载的《重学前端》也遇到了这个问题。你可以尝试下改成 let useArticleTtle = columnArticle.article_title.replace(/\//g, '-').replace(/\|+/g, '-');
会解决我的问题
from geektime2pdf.
@diesang 话说cookie这一项是不是没有填写?
from geektime2pdf.
我也遇到这个问题了,我只下载了一篇。尝试了 @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.
debug 代码发现是我的cookie不对,我获取的cookie 是从document.cookie 获取的,和chrome F12 中network 里的artical 中的请求的cookie 有些不一样,替换或就行了。
from geektime2pdf.
cookie 问题看这个 issue21 要抓包获取 header 的 cookie
from geektime2pdf.
Related Issues (20)
- Puppeteer Error: Chromium revision is not downloaded 报错的解决方法,建议加到readme中。 HOT 1
- 报错信息 HOT 4
- 作者大佬可以帮忙看看拉钩教育能不能做成类似的导出吗? HOT 2
- 特别放送没问题,但是主要内容出现报错 HOT 2
- help me HOT 3
- 求助帖 HOT 3
- 已经购买了专栏,但是不能下载 HOT 3
- cookie问题 HOT 1
- TimeoutError: Navigation Timeout Exceeded: 30000ms exceeded相关异常 HOT 1
- 请问现在还可以用吗?cookie问题 HOT 1
- 生成乱码是啥情况 HOT 1
- 求助 error msg 用户未购买此专栏 HOT 3
- (node:25492) UnhandledPromiseRejectionWarning: Error: Protocol error (Target.closeTarget): Target closed. HOT 2
- 代码块样式、划线笔记 有优化空间吗
- 通过Linux虚机验证成功(CentOS 7.9)
- 只能得到一篇文章或者Cookie不合法的解决办法 HOT 5
- 只能获取第一篇文章 HOT 1
- 之前一直都可以用,但是今天开始就报错了:err Unavailable For Legal Reasons
- 生成的PDF乱码,数字、英文、图片是正常的 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from geektime2pdf.