Ice Cream Deals in Safeway
I'm just getting started with Pythonista and I love it. I'm very inspired from the forum here and all the contributions I worked my way through.
My first script scrapes the local Safeway for their ice cream deals and sends me a push notification with Pushover.
After the playing around on the iPad I will run this with a cron job on my DO droplet.
I needed the chrome inspector with the network / XHR tab to figure out where they hide the actual deal items. At the end it's just a POST request and mini HTML response with the items per category.
Lots of stackoverflow for all the little python things like decode UTF8, etc. and lots of motivation from here!
This is a really cool script ;-)
I posted 4 ideas in the comments of the gist.
@ccc Thanks for the input. It made it much more concise and pythony beautiful!! I updated it on the same url.
On my way to take on a few of the other retail sites...