All Projects → jjeejj → Geektime2pdf

jjeejj / Geektime2pdf

Licence: mit
极客时间专栏文章 转为 PDF 包含评论 音频

Labels

Projects that are alternatives of or similar to Geektime2pdf

Books
Awesome Books
Stars: ✭ 3,242 (+1223.27%)
Mutual labels:  pdf
Open Paperless
Scan, index, and archive all of your paper documents (acquired by Mayan EDMS)
Stars: ✭ 2,538 (+935.92%)
Mutual labels:  pdf
Traprange
(Java)A Method to Extract Tabular Content from PDF Files
Stars: ✭ 236 (-3.67%)
Mutual labels:  pdf
Best Resume Ever
👔 💼 Build fast 🚀 and easy multiple beautiful resumes and create your best CV ever! Made with Vue and LESS.
Stars: ✭ 15,124 (+6073.06%)
Mutual labels:  pdf
Pep
PEP - Free & Open Source PDF Editing Program for Mac
Stars: ✭ 229 (-6.53%)
Mutual labels:  pdf
Android Pdfmyxml
convert android xml layouts into PDF document, works on all versions of Android.
Stars: ✭ 231 (-5.71%)
Mutual labels:  pdf
Ledgersmb
Repository for the LedgerSMB project -- web app for accounting & ERP
Stars: ✭ 222 (-9.39%)
Mutual labels:  pdf
Parsr
Transforms PDF, Documents and Images into Enriched Structured Data
Stars: ✭ 2,736 (+1016.73%)
Mutual labels:  pdf
Pagedjs
Display paginated content in the browser and generate print books using web technology
Stars: ✭ 228 (-6.94%)
Mutual labels:  pdf
Origami
Origami is a pure Ruby library to parse, modify and generate PDF documents.
Stars: ✭ 234 (-4.49%)
Mutual labels:  pdf
Mayan Edms
Free Open Source Document Management System (mirror, no pull request or issues)
Stars: ✭ 226 (-7.76%)
Mutual labels:  pdf
Node Signpdf
Simple signing of PDFs in node.
Stars: ✭ 226 (-7.76%)
Mutual labels:  pdf
Leerraum.js
A PDF typesetting library with exact positioning and hyphenated line breaking
Stars: ✭ 233 (-4.9%)
Mutual labels:  pdf
Gotenberg
A Docker-powered stateless API for PDF files.
Stars: ✭ 3,272 (+1235.51%)
Mutual labels:  pdf
Androiddocumentviewer
Android 文档查看: word、excel、ppt、pdf,使用mupdf及tbs
Stars: ✭ 235 (-4.08%)
Mutual labels:  pdf
Pdf Lib
Create and modify PDF documents in any JavaScript environment
Stars: ✭ 3,426 (+1298.37%)
Mutual labels:  pdf
Pdf Bot
🤖 A Node queue API for generating PDFs using headless Chrome. Comes with a CLI, S3 storage and webhooks for notifying subscribers about generated PDFs
Stars: ✭ 2,551 (+941.22%)
Mutual labels:  pdf
Open Publisher
Using Jekyll to create outputs that can be used as Pandoc inputs. In short - input markdown, output mobi, epub, pdf, and print-ready pdf. With a focus on fiction.
Stars: ✭ 242 (-1.22%)
Mutual labels:  pdf
Stapler
A small utility making use of the pypdf library to provide a (somewhat) lighter alternative to pdftk
Stars: ✭ 238 (-2.86%)
Mutual labels:  pdf
Svg2pdf.js
A javascript-only SVG to PDF conversion utility that runs in the browser. Brought to you by yWorks - the diagramming experts
Stars: ✭ 231 (-5.71%)
Mutual labels:  pdf

极客时间专栏转换为PDF

说明:该项目仅仅只能用户个人学习使用,不能在商业中使用,若极客时间官方要求该代码仓库删除,请联系我进行删除

使用方法

配置信息

在配置文件config.js中修改配置所需要的信息

/**
 * 需要转换为 pdf 的配置信息 
 */
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: '玩转VScode', // 专栏名称
    firstArticalId: 18053, //专栏第一篇文章的ID
    articalIds: [201700,202772,204472,205784],  //指定下载的articalId, 优先级更高, 配置后firstArticalId配置将失效
    isdownloadVideo: false, // 是否下载音频
    isComment: false, // 是否导出评论
    cookie: 'cookie'
};
  • 上面的配置项前三项是不需要修改的, 只需要修改后面的专栏信息

  • 会自动生成一个geektime_{{columnName}} 的文件夹来保存导出的所有pdf文件, columnName 为上面配置的

  • firstArticalId 这个参数最好配置专栏第一篇文章的 ID ,这个可以获取专栏的所有的文章,若不是第一篇文章的ID 则获取的是该文章以及之后的文章

  • articalIds 这个参数配置为需要获取的文章的所有的 ID

  • cookie 你在网页版登录后返回的cookie信息

运行

  1. git clone [email protected]:jjeejj/geektime2pdf.git 在本地克隆下来
  2. 然后执行 npm i 安装依赖
  3. 运行主程序 node columnArticleList.js 等待一段时间,生成 PDF 完成

这里可以先设置 firstArticalId 参数,获取整个专栏的内容;若中间有错误,不用管它,等运行完毕后,再设置 articalIds 参数,参数的值为上面获取失败的文章 ID,再次运行下载

导出结果

问题汇总

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].