Skip to content

Latest commit

 

History

History
20 lines (17 loc) · 457 Bytes

README.md

File metadata and controls

20 lines (17 loc) · 457 Bytes

Local Dev

GitBookPDFSpider.create({
  // replace target gitbook url & name
  url: 'https://braydie.gitbooks.io/how-to-be-a-programmer/content/en/',
  bookName: 'How to be a programer.pdf'
}).then(spider => {
  spider.run();
});
node ./gitbook.js

Generate PDF on Playwright Playground

  1. Copy gibook.js content
  2. open playwright playground: https://try.playwright.tech/?e=generate-pdf
  3. replace GitBookPDFSpider.create config