ahertel / Amazon-Fresh-Whole-Foods-delivery-slot-finder

A Mac tool that finds available delivery slots for Amazon's Whole Foods delivery and Amazon Fresh services
MIT License
1.03k stars 171 forks source link

auto-select slot and place order #6

Open ahertel opened 4 years ago

ahertel commented 4 years ago

Am starting a new issue for this feature that was discussed in issue #3

The idea: Once slots appear, the script could automatically select the first available one, and then click continue to finish the order. However, sometimes a slot appears, but by the time you select it and click "continue" it's already full and the continue button stops working. So in that case the program would keep refreshing, selecting new time slots, trying to checkout until the order finally goes through and the order confirmation page appears. This would make the tool complete in my eyes as it would then be fully autonomous and could even place orders while one is sleeping haha. I think once we having the auto-confirm out of stock clicking figured out, it would pretty easy to add this auto-checkout feature. The user chooses to enable this feature via a dialog box.

The progress so far: The automatic slot selection and checkout feature have proven far more difficult. More specifically, I ran into a roadblock: Once my script finds a slot, I can't even manually select it in Safari on my computer so I get stuck on that page, no matter how many times I refresh. To ensure it wasn't an out of stock issue, I loaded the checkout page in Google Chrome, and was repeatedly able to select a slot and finishing checkout out. I am also able to select a slot in Safari on a different MacBook in my house. Either something is wrong with my laptop's Safari, or perhaps Amazon has flagged my laptop's Safari client on my specific laptop due to my constant refreshing. Am curious to hear your thoughts. Thanks

cloniii commented 4 years ago

Hi. Same issue. Its Amazon platform that does not allow one to complete the order. I refreshed a few times closer to midnight and saw a few slots but was unsuccessful in clicking any one of them.

benholtz commented 4 years ago

Might consider trying your script in a private browsing window? Might raise complications of needing to log in though..

ahertel commented 4 years ago

UPDATE on progress on auto-select. Planning on publishing this feature tonight. Here's a video of it in action 4 days ago. It found found a slot, selected it, and placed the order while I was watching the screen. Last night auto-place order worked successfully again, this time fully unsupervised, placing an order at 2:16am while I was asleep. Funnily enough, this success came after almost 72 hours of running the script non-stop but only encountering "phantom" slots. In other words, it snagged the first real slot in 3 days and successfully placed an order. I didn't need any groceries though, and was only running it for testing purposes, so I canceled the order to free it up for someone else.

I still need to polish this new feature to prepare it for public release but hope to push it out by EOD.

ilithiumi commented 4 years ago

Cant wait for this! Thanks for building :)

benholtz commented 4 years ago

any update on this feature?