Skip to content

Perform additional check for no windows on Amazon Fresh#55

Open
mokudekiru wants to merge 1 commit into
ahertel:masterfrom
mokudekiru:last_no_window_check_amazon_fresh
Open

Perform additional check for no windows on Amazon Fresh#55
mokudekiru wants to merge 1 commit into
ahertel:masterfrom
mokudekiru:last_no_window_check_amazon_fresh

Conversation

@mokudekiru
Copy link
Copy Markdown

Amazon Fresh has a different site layout when no delivery windows are available than Whole Foods (at least in San Francisco - screenshot below). This makes the script reach an error state and results in going back to the beginning of the cart each time, losing out on 50% of potential window opportunities.

My solution is to add one last minute check after checking for windows, specifically for Amazon Fresh. If we do this earlier (alongside the first no window check) we would get false negatives when there are no delivery windows today, but there are some the following days. Not the ideal solution imo, but it avoids the unnecessary error + restart.

Screen Shot 2020-04-12 at 3 18 52 PM

@mark-thompson
Copy link
Copy Markdown

@mokudekiru Would you happen to have the source (or at least relevant element properties) for that page? I'm working on a platform-independent tool for this and haven't been able to test available slots on Amazon Fresh.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants