Jaffa / amazon-music

Provide programmatic access to Amazon Music/Prime Music's streaming service
Apache License 2.0
336 stars 67 forks source link

Cannot get past captcha #19

Open Liturgist opened 5 years ago

Liturgist commented 5 years ago

Is there any additional information I can provide? Any suggestions?

Exception: Unable to handle captcha: [<source data-refresh-url="/ap/captcha?appAction=SIGNIN&amp;captchaType=audio" id="mp3-file"

Jaffa commented 5 years ago

There's no support for displaying or doing anything with captchas at the moment during the authentication flow. Ideally, we'd have a great way of authenticating with Amazon (e.g. OAuth).

If someone could find a way of authenticating with Amazon Music a different way, that'd be great!

In the mean time, the only thing I can suggest is trying to bypass the "your account is a bit suspicious" flag on Amazon's servers, by logging in on a computer from the same IP. If that still doesn't work, maybe we can make it easier to import cookies from a browser-based session.

ghost commented 5 years ago

@Jaffa, do you think using http://tkhtml.tcl.tk/tkhtml.html would be the best approach to solving this problem? Or have you thought of anything else?

Jaffa commented 5 years ago

@manykwh, thanks for the suggestion and apologies for the delay in replying.

I'd hope to not have to handle it at all, as the library should be able to work as an offline thing. Unless Amazon provide a better authentication API, though, it might we'll need handling l.

I think the design for the handler should support both audio and visual captchas, allowing it to be used headlessly.