Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ const path = require('path')
const axios = require('./speed-limiter')
const cheerio = require('cheerio')

const bookID = '9781319081799'
const bookID = '9780455249612'
const baseURL = `https://jigsaw.vitalsource.com/books/${bookID}/epub/`
const fsRelativePath = './epub/'

// Cookie value sent to jigsaw.vitalsource.com from the browser
// including: reese84 + jigsaw_session
const globalCookieVal = ``
const globalCookieVal = `YioRZ9/ES/yjC1op8KARvIHZngpHWuWKu9YCcUPvE5F5+BI72mrdNPW4XybZiXHFy7Xa282J4oM48kAgeE+iOvusZoUN/r/UvNBCQIWfILBLhjUGtY6V1AV5uN4s3qZ+wjqSVMkijf4BNT2m8BD3ezNeLgXhO3EyZzPdgDaih1bVzWy/aDQ=--fZCymXUwmiZfLrYN--KEAJsiPprg4yYylNOBd11w==`

const writeIntoFS = async (filepath, contents) => {
const file = path.resolve(fsRelativePath, filepath)
Expand Down