Comments (5)
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.
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'
from amazon-orders.
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.
Give version 1.0.4
a try, this should work now.
from amazon-orders.
Confirmed working in 1.0.4
. Thanks!
from amazon-orders.
Related Issues (13)
- Use Requests Cookie Jar to Persist Session Between Runs
- Finish build-test-resources.py HOT 1
- .gitattributes Should Be Hiding HTML From Linguistics
- Improve docs
- CSS Selectors HOT 1
- AmazonOrdersAuthError on amazon.com (sometimes) HOT 1
- On CLI, usename and password aren't actually needed every time now that sessions are persisted
- Implement Private Resources Folder for Testing
- Returns no orders when more than zero were expected. HOT 9
- Add Support for Async Auth Flow HOT 1
- I love this project! Unable to pickle orders HOT 3
- Support for international Amazon sites HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from amazon-orders.