Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not downloading book, images only. #45

Open
0Ky opened this issue Oct 25, 2021 · 3 comments
Open

Not downloading book, images only. #45

0Ky opened this issue Oct 25, 2021 · 3 comments

Comments

@0Ky
Copy link

0Ky commented Oct 25, 2021

> node --version
v14.17.0

> npm -v
6.14.13

> npm list --depth=0
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
`-- [email protected]
> npm i
npm WARN [email protected] No repository field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: 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.

@wemoveon2
Copy link

Having this issue as well... Has this project been abandoned?

@bgetsios
Copy link

bgetsios commented Mar 7, 2023

I'm also facing this same issue

@VitorTenor
Copy link

I've the same issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants