Re:Reversing Safeway's private APIs to automate coupon colle...
by tenaciousDaniel on Monday October 14, 2019 @01:38PM
(#21250762)
You can use Selenium to do the same thing in a headless browser, no need for a desktop browser with a page open.
Re:Reversing Safeway's private APIs to automate coupon colle...
by bdcravens on Monday October 14, 2019 @02:00PM
(#21250992)
In which case you want to probably use their headless Docker containers. https://github.com/SeleniumHQ/docker-selenium
You can also use Puppeteer for this purpose (using headless Chrome) https://github.com/GoogleChrome/puppeteer
Re:Reversing Safeway's private APIs to automate coupon colle...
by barbellguy97 on Monday October 14, 2019 @02:10PM
(#21251101)
That's probably what he did though. I like Puppeteer more than Selenium FWIW, especially because Node.js allows you to prototype a lot quicker than other languages imo.
I'm not sure if using this API is any different but a few months ago Safeway made a change that only lets you have 20(?) coupons at any time. After you add more it kicks off your oldest one. Which sounds like plenty but if you're adding every single coupon you're gonna get a ton that you have no desire for ($1 off diapers when you don't have a kid etc).
It worked for a while, though!