nicohaenggi / SafariBooks-Downloader

a SafariBooksOnline downloader that generates respective .epub books for offline and kindle reading
https://learning.oreilly.com/
MIT License
514 stars 106 forks source link

Status error 301 #85

Open MK281 opened 4 years ago

MK281 commented 4 years ago

C:\Users\17041758\SafariBooks-Downloader>safaribooks-downloader -b 9781484224427 -u nicohaenggi -p MySuperSecurePassword -o /Users/nicohanggi/Desktop/testbook.epub [safari-downloader] starting application... [safari-downloader] StatusCodeError: 301 - undefined

This is the error I am getting. Does anyone know how to fix this? Thanks

sboisvert commented 4 years ago

In index,js Change this.baseUrl = "https://www.safaribooksonline.com"; to this.baseUrl = "https://learning.oreilly.com";

andrealmar commented 4 years ago

In lib/safari/index.js change

this.baseUrl = "https://www.safaribooksonline.com";

to

this.baseUrl = "https://learning.oreilly.com";

eberhm commented 2 years ago

This solves the error. @nicohaenggi you may want to consider closing this issue.

Thanks for the work!! 💯