alexa-remote-control: Failed login -- apparent captcha

When I run the script I receive the following login error:

cookie does not exist. logging in ...
ERROR: Amazon Login was unsuccessful. Possibly you get a captcha login screen.
 Try logging in to https://alexa.amazon.com with your browser. In your browser
 make sure to have all Amazon related cookies deleted and Javascript disabled!

 (For more information have a look at /tmp/.alexa.login)

When I try to login to https://alexa.amazon.com with javascript disabled I get a captcha screen. I looked at /tmp/.alexa.login and it shows a captcha request as well.

Any suggestions?

About this issue

  • Original URL
  • State: closed
  • Created 9 years ago
  • Comments: 54 (2 by maintainers)

Most upvoted comments

I had the same problem. Add this extension to chrome https://chrome.google.com/webstore/detail/cookietxt-export/lopabhfecdfhgogdbojmaicoicjekelh

Then goto https://alexa.amazon.com/, login to amazon, and run the extension. Paste the text into /tmp/.alexa.cookie and you’ve bypassed captcha’s and possibly 2fa.

Here are the steps to be followed to fix the issue.

  1. go to your amazon.<com or ca or uk or in> and go to accounts option to enable MFA
  2. In the section Backup methods, add a new app 3 You should see a QR code. Click the link below saying cannot read QR code.
  3. Copy the MFA code e.g KG32 2TCT PLCC O6MK GOMS TZTV 7G6A FMQY Q3AL YZMV WLA7 PHWF 75PQ.
  4. Open the script alexa_remote_control.sh and add above code to MFA_SECRET.
  5. run the ./alexa_remote_control.sh -a 7 if you get the same cookie error, run the command oathtool --base32 --totp “MFA_SECRET”
    The result of the command would be a number, copy that number and go to the browser where you got the MFA code and enter that code in the box below saying OTP and click submit
  6. Return back to the terminal and run the ./alexa_remote_control.sh -a

for what it’s worth i found that the cookies.txt extension in firefox generates a usable cookies.txt file and the extension for chrome does not (at least on linux). I haven’t compared the two files to see why that would be.

But if the session expires in just a few weeks then that’s of marginal use anyway.