Giter Site home page Giter Site logo

Comments (14)

mark-thompson avatar mark-thompson commented on August 29, 2024 2

@teckboy @BrendanBTO Thanks! Check back in the next day or so for updates

from whole-foods-deliverance.

teckboy avatar teckboy commented on August 29, 2024 1

https://gyazo.com/b58f51cb5fa85b4f92ad4e069975cbd2

from whole-foods-deliverance.

mark-thompson avatar mark-thompson commented on August 29, 2024 1

@teckboy Glad to hear you're getting some utility out of this and you're able to help your family! I'll look into the source you provided and make some adjustments. Will reference this issue when I've got a fix

from whole-foods-deliverance.

BenMQ avatar BenMQ commented on August 29, 2024 1

@mark-thompson did you already have a sample dump? if not, I can provide one

from whole-foods-deliverance.

teckboy avatar teckboy commented on August 29, 2024 1

@teckboy @BenMQ @BrendanBTO Just pushed a quick temp fix that should at least notify you when slots are available.
This worked on the source provided by @teckboy , but I'm unable to test on the live site, as I am apparently not yet on the guest list for Amazon Fresh.
Auto-checkout and preferences won't work, but if you end up finding a slot, the page source will be dumped and I should be able to add that functionality fairly quickly

Got one!!!

[2020-04-20 05:57:38] {_make_request} DEBUG: http://127.0.0.1:64054 "GET /session/2b437aee2ef97aaf72185969824bdbe2/source HTTP/1.1" 200 568564
[2020-04-20 05:57:38] {_request} DEBUG: Finished Request
Traceback (most recent call last):
File "run.py", line 232, in
main_loop(driver, args)
File "run.py", line 159, in main_loop
slots = get_slots(driver, slot_prefs, slot_route)
File "run.py", line 97, in get_slots
slot = SlotElementMulti(e)
File "/Users/me/Desktop/whole-foods-deliverance-master.20200420/deliverance/elements.py", line 72, in init
date_element = self.find_date_element()
File "/Users/me/Desktop/whole-foods-deliverance-master.20200420/deliverance/elements.py", line 124, in find_date_element
'Expected 1 date element but found {}'.format(len(elems))
deliverance.exceptions.SlotDateElementAmbiguous: Message: Expected 1 date element but found 0

source_dump-gp-buy-shipoptionselect-handlers-display_20200420T095738Z.rtfd.zip

from whole-foods-deliverance.

mark-thompson avatar mark-thompson commented on August 29, 2024 1

@teckboy Excellent! Would you mind sending that as html or .txt? RTF changes the formatting such that I can't parse the HTML tags.

@BrendanBTO Could you run with --debug and provide the source?

from whole-foods-deliverance.

mark-thompson avatar mark-thompson commented on August 29, 2024

I suspect this was due to an out of stock alert - did you notice one displayed after the error?
It should have also dumped the page source. Would you mind providing it here so I can debug? (be sure to redact any personal information on the page)

from whole-foods-deliverance.

mark-thompson avatar mark-thompson commented on August 29, 2024

Ah, looks like the slot containers are different in your area - would you mind providing that page source (source_dump_15xxxxxxxxxx.html) via pastebin or similar?

from whole-foods-deliverance.

mark-thompson avatar mark-thompson commented on August 29, 2024

@BenMQ I did receive a few, yes, but none with open slots. if you happen to find an open slot and can send the source of that page (or at least the XPath/CSS selector logic for the slot/button) for testing, I'd appreciate it.

from whole-foods-deliverance.

mark-thompson avatar mark-thompson commented on August 29, 2024

@teckboy @BenMQ @BrendanBTO Just pushed a quick temp fix that should at least notify you when slots are available.
This worked on the source provided by @teckboy , but I'm unable to test on the live site, as I am apparently not yet on the guest list for Amazon Fresh.
Auto-checkout and preferences won't work, but if you end up finding a slot, the page source will be dumped and I should be able to add that functionality fairly quickly

from whole-foods-deliverance.

BrendanBTO avatar BrendanBTO commented on August 29, 2024

For me its erroring out with the same message. Expected 1 date element but found 0.

from whole-foods-deliverance.

teckboy avatar teckboy commented on August 29, 2024

source_dump-gp-buy-shipoptionselect-handlers-display_20200420T095427Z.html.zip

from whole-foods-deliverance.

BrendanBTO avatar BrendanBTO commented on August 29, 2024

@mark-thompson Here's the source HTML. I edited it to remove all appearances of names, addresses, etc.
source_dump-gp-buy-shipoptionselect-handlers-display_20200420T235136Z_Edited.html.zip

from whole-foods-deliverance.

mark-thompson avatar mark-thompson commented on August 29, 2024

@teckboy @BrendanBTO Give the new version a try. It should be able to detect open slots and may even check out for you, assuming the XPATH logic for the continue button is correct.
Run with debug and let me know how it goes

from whole-foods-deliverance.

Related Issues (20)

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.