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

Status error 301 #85

Open
MK281 opened this issue Dec 22, 2019 · 3 comments
Open

Status error 301 #85

MK281 opened this issue Dec 22, 2019 · 3 comments

Comments

@MK281
Copy link

MK281 commented Dec 22, 2019

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
Copy link

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

@andrealmar
Copy link

In lib/safari/index.js change

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

to

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

@eberhm
Copy link

eberhm commented Jan 16, 2022

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

Thanks for the work!! 💯

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