- This utility will only download the first "eTextbook" that shows up in the dashboard.
- PRs to help streamline the download process welcome!
- Chrome/Chromium is required for Puppeteer.
npm install
- Create
.env
and defineEMAIL
,PASSWORD
, andEBOOK_BASE_URL
- note: you can get
EBOOK_BASE_URL
by navigating to your textbook from Cengage, and then opening the textbook iframe url in a new tab. Copy everything beforecontent/{[insert page].html}
- With Firefox, you can right click somewhere within the textbook, then in the context menu click on This Frame > Open Frame In New Tab
- note: you can get
- run
index.js
. This will create a pdf file for each page in the textbook withindownload/
. If the download is interrupted, you should be able to continue by running it again. - delete all empty files within
download/
. If you havefind
installed you can just runfind . -size 0 -delete
. - run
merge-pdf.js
, which should createmerged.pdf
. - any extra processing (deleting metadata, lineralizing, etc.)