Reversing Safeway's private APIs to automate coupon collection
21–30 of 148 posts
Re: Reversing Safeway's private APIs to automate coupon collection
#22When I see access to private API's like this, I wonder how judges would interpret these actions as they relate to the CFAA. By accessing "private" API's like this, are you knowingly accessing a computer without authorization? Are you exceeding your authorized access? The fact that Aaron's Law never went through has disturbed me...
Re: Reversing Safeway's private APIs to automate coupon collection
#23When I see access to private API's like this, I wonder how judges would interpret these actions as they relate to the CFAA. By accessing "private" API's like this, are you knowingly accessing a computer without authorization? Are you exceeding your authorized access? The fact that Aaron's Law never went through has disturbed me...
I know you are just playing devil's advocate but why "without authorization"? You are using your account and your cookies so it should be fair game?
Re: Reversing Safeway's private APIs to automate coupon collection
#24Re: Reversing Safeway's private APIs to automate coupon collection
#25This is cool but I'm not sure the purpose. I use the Safeway app every time I go to Safeway. I scan all the offers and just add the ones I want, which builds a shopping list for me. This gives me a list of things to buy but more importantly I know what's on sale . If I just added all the coupons I'd still have to scan the list of things to find what I want to buy, but then I'd have to track them elsewhere, because th…
Re: Reversing Safeway's private APIs to automate coupon collection
#26It seems like coupled with couponing, you can build a decent price tracker that can tell you if you're actually getting a good deal. (like https://camelcamelcamel.com/ for amazon, https://steamdb.info/sales/ for steam games)
Otherwise I've noticed that many(though not all) coupons are for items which recently had their base price increased to make the coupon seem like a better deal than you're actually saving.
Re: Reversing Safeway's private APIs to automate coupon collection
#27This is cool but I'm not sure the purpose. I use the Safeway app every time I go to Safeway. I scan all the offers and just add the ones I want, which builds a shopping list for me. This gives me a list of things to buy but more importantly I know what's on sale . If I just added all the coupons I'd still have to scan the list of things to find what I want to buy, but then I'd have to track them elsewhere, because th…
> I’m not someone that “needs” to get the best deal - if what I’m buying has a coupon then great, but I’m not going to change my purchases based on coupons
The author will buy what the author will buy, and he may happen to get a discount if any coupons apply.
Re: Reversing Safeway's private APIs to automate coupon collection
#28Haha, I did something similar a while ago - I just invoked a click() on every "add coupon" button on their website, I didn't want to reverse engineer their APIs - way easier but also it requires a desktop browser with the page open. 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 o…
You can use Selenium to do the same thing in a headless browser, no need for a desktop browser with a page open. https://www.seleniumhq.org/
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 collection
#29$(".grid-coupon-clip-button button").click();
Re: Reversing Safeway's private APIs to automate coupon collection
#30Another tip: (area code) 867-5309 works for Safeway club card discounts in most area codes while piping tracking of your purchases to essentially null. Yes, Jenny’s number.