omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular

    Welcome!

    This is the community forum for my apps Pythonista and Editorial.

    For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.


    Ice Cream Deals in Safeway

    Pythonista
    2
    3
    2050
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • makeliferock
      makeliferock last edited by

      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!

      https://gist.github.com/makeliferock/8295142

      1 Reply Last reply Reply Quote 0
      • ccc
        ccc last edited by

        This is a really cool script ;-)

        I posted 4 ideas in the comments of the gist.

        1 Reply Last reply Reply Quote 0
        • makeliferock
          makeliferock last edited by

          @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...

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Powered by NodeBB Forums | Contributors