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

exit status 1 #2

Open
icf20 opened this issue Feb 13, 2019 · 15 comments
Open

exit status 1 #2

icf20 opened this issue Feb 13, 2019 · 15 comments
Assignees
Labels
bug Something isn't working

Comments

@icf20
Copy link

icf20 commented Feb 13, 2019

after 6 books it shows this error

@fschirinzi
Copy link

Same here
`
Visiting https://www.blinkist.com/en/nc/reader/the-power-of-the-other-en/
2019/02/13 21:24:06 Book page response received HTTP200
Book title is: The Power of the Other
API Link:https://www.blinkist.com/api/books/..../chapters/..../audio for chapter The Power of the Other/0
.........
API Link:https://www.blinkist.com/api/books/..../chapters/..../audio for chapter The Power of the Other/9
http://: Invalid host name.
2019/02/13 21:24:08 Folder already exist, investigate!
http://: Invalid host name.
2019/02/13 21:24:08 Folder already exist, investigate!
http://: Invalid host name.
2019/02/13 21:24:08 Folder already exist, investigate!
http://: Invalid host name.
2019/02/13 21:24:08 Folder already exist, investigate!
http://: Invalid host name.
2019/02/13 21:24:08 Folder already exist, investigate!
http://: Invalid host name.
2019/02/13 21:24:08 Folder already exist, investigate!
http://: Invalid host name.
2019/02/13 21:24:08 Folder already exist, investigate!
http://: Invalid host name.
2019/02/13 21:24:08 Folder already exist, investigate!
http://: Invalid host name.
2019/02/13 21:24:08 Folder already exist, investigate!
http://: Invalid host name.
2019/02/13 21:24:08 Requests made: 11 (1 responses) | Callbacks: OnRequest: 0, OnHTML: 3, OnResponse: 11, OnError: 0
2019/02/13 21:24:10 Service Unavailable
exit status 1

`

@luckylittle
Copy link
Owner

It sometimes randomly happens, but it is a problem on their end

@pptpatil
Copy link

Facing the same issue, not able to download on either windows or linux machine.

On a linux machine the script stops after a downloading folders for the respective books, but folder contains files which are empty.

On windows machine, its just empty folders and the script consistently fails with the above error all the time, after few books.

Is there anyway to get around the problem, can someone please help

@luckylittle
Copy link
Owner

I looked into it and they added some new security measures to the API calls.
This link still works without any issues (while logged in to the site):
https://api.blinkist.com/v4/books/ + <book_id> + /meta
However, the link:
https://www.blinkist.com/api/books/ + <book_id> + /chapters/ + <chapter_id> + /audio
that used to return audio file stopped working (you will get 401 Unauthorized, because they introduced x-csrf-token (Cross-Site Request Forgery protection).
They're also masking AWS CloudFront with https://audio.blinkist.io/, but that shouldn't be a problem.
When i have some time, i will look into it more.

@luckylittle luckylittle added the bug Something isn't working label Mar 13, 2019
@luckylittle luckylittle self-assigned this Mar 13, 2019
@gspzz
Copy link

gspzz commented Mar 31, 2019

Hope your doing alright and waiting for your bugfix. Thank you for the project.

@napokhte
Copy link

napokhte commented Jun 8, 2019

waiting for bugfix sir.

@KamiGim
Copy link

KamiGim commented Jun 30, 2019

waiting as well

@CodexTempus
Copy link
Contributor

Hi,
I have about the same issue 'Too many requests' with a few empty folders.
Can't find an alternative ... more convenient to have audios sotred on mp3 player instead of taking the phone aorund.
Thanks @luckylittle

@deepakfialok
Copy link

Hi buddy, thanks for attempting to make this script - can you please look into the bug

  1. cannot find package "github.com/gocolly/colly
  2. Too many requests

Anybody knows better ways to download blinkist (e.g. node package)

@AndrijaBenedik
Copy link

AndrijaBenedik commented Dec 28, 2019

Hi buddy, thanks for attempting to make this script - can you please look into the bug

  1. cannot find package "github.com/gocolly/colly

Install Colly from https://github.com/gocolly/colly

@icf20
Copy link
Author

icf20 commented Dec 28, 2019

i have applied pull #5

it downloads few folders then there are to many requests

2019/12/28 19:07:44 Requests made: 11 (11 responses) | Callbacks: OnRequest: 10, OnHTML: 3, OnResponse: 11, OnError: 0
2019/12/28 19:07:45 Too Many Requests
exit status 1

@CodexTempus
Copy link
Contributor

Hi icf20 you need to add a delay I would say so, I tried to find about retryin in the header but faster to add a random delay

@dr0pd34d
Copy link

The issue is still present, @CodexTempus would you please share your solution or contact me on another channel? :)

@ranqiangjun
Copy link

I've written code myself to download them all when I was checking this repo as it was not working for me. Planned to opensource it after refactoring. hadn't got time to continue before my 1-year membership expired. I already had most of audio files and texts downloaded with it, so I did not renew my membership. Blinkist changes as time go by, not sure the code still works nowadays. If anyone here is willing to share your account to me, I may get time (maybe 1 or 2 months later) to continue working on it and opensource it if necessary.@jungleran is my twitter account. I think you can find me there :).

Warning: please take any risk yourself of sharing the account to me, for example, to be banned by Blinkist while testing.

image

@ranqiangjun
Copy link

ranqiangjun commented Mar 15, 2020

To whom may concerns. I've uploaded the code to https://github.com/jungleran/blinkist-downloader, if someone is interested in improving it. PRs are welcome. if you need the maintainership, please open an issue there too, I am happy to add new maintainers.

Repository owner locked as too heated and limited conversation to collaborators Mar 15, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests