Giter Site home page Giter Site logo

Comments (5)

alexdlaird avatar alexdlaird commented on June 7, 2024

How many times? The default in the script is to timeout after 10, but that can be changed.

There already is support for Amazon OTP via voice or SMS, so if it’s not working, we'll need data to understand why.

Try running with the debug flag on and attach any log output and HTML files produced. You can follow the instructions in troubleshooting docs to see how to enable debug mode and send log data to the console. Also include any stacktraces, if you're seeing an error.

from amazon-orders.

kylehendricks avatar kylehendricks commented on June 7, 2024

Ah, my bad. Yea, I'm not sure if it was too many failed attempts to solve the captcha or just some sort of follow-up OTP?

When I just ran the example script now, I didn't get a captcha pop-up, immediately got an OTP sent via SMS, and got this stack trace:

Traceback (most recent call last):
  File "/Users/kylehendricks/source/amazon-orders/test.py", line 5, in <module>
    amazon_session.login()
  File "/Users/kylehendricks/source/amazon-orders/venv/lib/python3.11/site-packages/amazonorders/session.py", line 231, in login
    self._captcha_1_submit()
  File "/Users/kylehendricks/source/amazon-orders/venv/lib/python3.11/site-packages/amazonorders/session.py", line 328, in _captcha_1_submit
    captcha_div.find("img", {"alt": "captcha"}).attrs["src"])
    ^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'find'

html.zip

from amazon-orders.

alexdlaird avatar alexdlaird commented on June 7, 2024

Perfect, this should give me everything I need, and I see the difference of why it's failing through to Captcha when it's actually an OTP page.

Amazon has so many different versions of the same page they push through the auth flow, it's going to take some work and crowdsourcing before we find them all.

I'll let you know when I implement this and push a new version, shouldn't take too much work, might have time tonight.

from amazon-orders.

alexdlaird avatar alexdlaird commented on June 7, 2024

Give version 1.0.4 a try, this should work now.

from amazon-orders.

kylehendricks avatar kylehendricks commented on June 7, 2024

Confirmed working in 1.0.4. Thanks!

from amazon-orders.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.