paulmaunders / delivery-slot-bot

A puppeteer based bot to monitor supermarket online delivery slots.
MIT License
54 stars 27 forks source link

Request - Multiple Click and collect locations #41

Open flashcash opened 4 years ago

flashcash commented 4 years ago

Firstly Brilliant bot, works really well. Request - I live between 2 Tescos. Would it be possible to check a multiple locations The URL only changes the location number so possibly it could loop through location numbers if supplied?

saqmaster commented 4 years ago

Additionally to this, is there any intention to add an option for Tesco delivery address? Would be good to be able to select which address to check slots against, or check all even? Thank you for your efforts.

obbardc commented 4 years ago

+1 for now tesco with click_and_collect = true seems to select the closest store - which is a bit annoying since three of five local stores are pretty much the same distance apart ;-)

it would be great to have an extra CSV config option to select the different stores - like: tesco_click_and_collect_locations=123,23,4343

not sure how this would work with other stores though.

obbardc commented 4 years ago

okay so I got five minutes and hacked this branch together: https://github.com/obbardc/delivery-slot-bot/tree/wip/obbardc/tesco-stores

it selects slots from my three local stores using a regex, would it best to put the regex as an optional config option ?

git-creat commented 4 years ago

okay so I got five minutes and hacked this branch together: https://github.com/obbardc/delivery-slot-bot/tree/wip/obbardc/tesco-stores

it selects slots from my three local stores using a regex, would it best to put the regex as an optional config option ?

wow that sounds great. How to get it to check other stores? I'm desperate for a feature like this.

obbardc commented 4 years ago

pull my branch:

git clone https://github.com/obbardc/delivery-slot-bot.git
cd delivery-slot-bot
git checkout wip/obbardc/tesco-stores

edit config, change the store names (or remove those lines completely), then run as you normally would.

git-creat commented 4 years ago

pull my branch:

git clone https://github.com/obbardc/delivery-slot-bot.git
cd delivery-slot-bot
git checkout wip/obbardc/tesco-stores

edit config, change the store names (or remove those lines completely), then run as you normally would.

Thanks. I tried but couldn't do it.. I'm a noob to all of this. I'll try it again later. Maybe a good idea to commit the changes to the master copy?