-
Notifications
You must be signed in to change notification settings - Fork 38
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
amazon module fails to download digital invoices #65
Comments
Can you paste the trace? What's the exact line where the exception is thrown? |
It times out because the browser is sitting on a "We're sorry!" page |
It downloads digital orders just fine when I switch to that commit. |
Can you confirm if your terminal shows the line "Found likely Amazon Fresh order. Falling back to direct invoice URL." before the script crashes? |
Doesn't look like it. This is the entirety of the spew
|
Something doesn't add up. I suggest you sprinkle some |
dunno if related, but HEAD scrapes the wrong group. If I set it to 2022, i can watch it scrape 2021. #70e9385 scrapes the correct group. |
That's strange, because my PR did not touch any of the group logic. We had an off by one issue with the drop-down menu in the Amazon downloader a while ago, but I think that got fixed. |
Odd. I wiped the 2022 dir and repeated it. I get both 2022 and 2021 invoices in there. This is my cfg
Anyways, using that older commit I was able to download 3048 invoices starting back from the year 2000, 1133 of which were digital invoices that HEAD would not fetch. Of all of those, amazon legitimately can't produce 4 of them so I had to stub the files so the script would pass over them. Feel free to close this out. I have a version of the code that works for me and unless anyone else is having issues, I would not prioritize an issue you can't reproduce. |
I'm hitting both of these issues; I only get orders from 2020 when I specify I installed finance-dl using |
Comparing the the v1.3.3 tag to master, there are several commit messages that mention various fixes for Amazon. Maybe it would be worth it to cut a new release and push it up to PyPI? |
Adding some more information to this, the order groups don't download correctly for me i.e. 2022 downloads 2021 invoices, and so on, and not inputting an order group results in a timeout error. Interestingly, setting the order group "past 3 months" downloads 2022 invoices, so it seems like everything is being shifted 'down' the order group hierarchy by one level. |
finance-dl formats the url as
https://www.amazon.com/gp/css/summary/print.html?ie=UTF8&orderID=D01-1380792-3469006
which results in an error.
This one, which matches the pattern when I manually visit digital order invoices, works.
https://www.amazon.com/gp/digital/your-account/order-summary.html/ref=ppx_yo_dt_b_dpi_o00?ie=UTF8&orderID=D01-1380792-3469006&print=1
Dunno if the url has been changed since the code was written or if I'm hitting a unique issue.
The text was updated successfully, but these errors were encountered: