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

Issue creating EPUB File #253

Open
mauriciospinelli opened this issue Jan 12, 2021 · 2 comments
Open

Issue creating EPUB File #253

mauriciospinelli opened this issue Jan 12, 2021 · 2 comments

Comments

@mauriciospinelli
Copy link

Hi,

I'm facing an issue after downloading the content to create the EPUB file, book 9780135262047

[-] Creating EPUB file...                                                                                                                                                               
[#] API: [+] Use the `--cred` or `--login` options in order to perform the auth login to Safari. Don't delete any files, just run again this program in order to complete the `.epub` creation!

I tried to re-run the whole process but no difference at all. Also, I'm using SSO to authenticate with cookies.

Any help will be very appreciate

Thank you

@isavcic
Copy link

isavcic commented Jan 23, 2021

[23/Jan/2021 18:37:20] Last request done:
        URL: https://learning.oreilly.com/api/v1/book/1234567890/toc/
        DATA: None
        OTHERS: {}

        404
        Connection: keep-alive
        Content-Length: 45
        server: istio-envoy
        content-type: application/json
        strict-transport-security: max-age=31536000; includeSubDomains
        x-envoy-upstream-service-time: 334
        etag: xxx
        x-content-type-options: nosniff
        x-powered-by: Express
        Accept-Ranges: bytes
        Date: Sat, 23 Jan 2021 17:37:21 GMT
        Via: 1.1 varnish
        X-Client-IP: xxx
        X-Served-By: cache-fra19126-FRA
        X-Cache: MISS
        X-Cache-Hits: 0
        X-Timer: S1611423441.717720,VS0,VE902
        Vary: Accept, Accept-Encoding, Authorization, Cookie

{"error":"Could not fetch table of contents"}

@isavcic
Copy link

isavcic commented Jan 25, 2021

Definitely an issue with some books only. There is another TOC in XHTML format which perhaps can be used to generate the EPUB TOC. It is at https://learning.oreilly.com/library/view/book-name/1234567890/toc.xhtml. The only issue is parsing it.

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

No branches or pull requests

3 participants