> node --version
v14.17.0
> npm -v
6.14.13
> npm list --depth=0
+-- async@3.2.1
+-- cheerio@1.0.0-rc.3
+-- commander@3.0.2
+-- epub-gen@0.1.0
+-- image-downloader@3.5.0
+-- jest@27.1.0
+-- jest-cli@27.1.0
+-- request@2.88.0
`-- request-promise@4.2.4
> npm i
npm WARN obooks@0.2.3 No repository field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.3.2 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
added 466 packages from 343 contributors and audited 468 packages in 7.234s
24 packages are looking for funding
run `npm fund` for details
found 2 moderate severity vulnerabilities
run `npm audit fix` to fix them, or `npm audit` for details
After running the following command: node cli.js -b "9781492077992" -c "actual cookies" it outputs:
+:++:++:++:+ using stored cookies
+:++:++:++:+ downloading: Head First Design Patterns, 2nd Edition
+:++:++:++:+ 22 chapters to download, please wait...
+:++:++:++:+ assembling book...
The cookie was collected by logging in to O'Reilly via Chrome, copied the cookie value from the request header at the network tab of DevTools. Yes, I have an active subscription to O'Reilly where I can read this particular book using the browser. I checked whether it was parsing/storing the correct cookie by observing the generated session.json file:
{
"cookie": "BrowserCookie=x; salesforce_id=x; groot_sessionid=x; logged_in=y; csrfsafari=x; orm-rt=x; sessionid=x; csrftoken=x; orm-jwt=x"
}
I am having the same issue as #30 where it only downloads images. I have tried different books, it's all the same.
After running the following command:
node cli.js -b "9781492077992" -c "actual cookies"it outputs:The cookie was collected by logging in to O'Reilly via Chrome, copied the cookie value from the request header at the network tab of DevTools. Yes, I have an active subscription to O'Reilly where I can read this particular book using the browser. I checked whether it was parsing/storing the correct cookie by observing the generated
session.jsonfile:{ "cookie": "BrowserCookie=x; salesforce_id=x; groot_sessionid=x; logged_in=y; csrfsafari=x; orm-rt=x; sessionid=x; csrftoken=x; orm-jwt=x" }I am having the same issue as #30 where it only downloads images. I have tried different books, it's all the same.