Author

Bob Belderbos Avatar

Bob Belderbos

Latest articles

by

  • Deploying a Django App to PythonAnywhere

    ·

    ·

    3 min read

    After Julian’s great article on deploying a Flask app to Heroku, let’s look at how we can deploy a Django app to PythonAnywhere (PA).


  • First Steps Learning Django: PyPlanet Article Sharer App

    ·

    ·

    4 min read

    In this post I share my first steps exploring Django. I created PyPlanet Article Sharer Django App to make it easier for us to share new Planet Python feed articles. It loads in new articles and generates tweet links. It lets us mark each entry as Shared or Skipped. I am sure this will facilitate our Twitter activity and News Digests. This is our first project of our 100 days of Django and our very first Django app overall!


  • Building a Karma Bot with Python and the Slack API

    ·

    ·

    4 min read

    We love Slack! But what if we can make it even cooler? Imagine: you are geeking out with your fellow developers on Slack and you want to give them credit. Or you can write “stupidsubject–” and it automagically shows “stupidsubject’s karma decreased to -2”. Enter Karma Bot. This is nothing new but building one myself was a great learning exercise and a fun tool we use on our Slack now.


  • Parsing Twitter Geo Data and Mocking API Calls by Example

    ·

    ·

    2 min read

    “Is this Bob or Julian?!” … yeah tweeting from our shared @pybites Twitter account can be confusing! So I made a little script to parse the location of our tweets. Then I extended it to make it testable. I wrote a decorator to cache a couple of API outputs to be used with the unittest.mock patch decorator I learned about. A simple script turned into a good learning exercise.


  • PyCon 2017 – Digest, Impressions, Reflection

    ·

    ·

    4 min read

    PyCon 2017 was such a great conference, I made so many good connections, got to see many good things the community is working on. It was very inspiring. In this article a digest.


  • Building a Simple Birthday App with Flask-SQLAlchemy

    ·

    ·

    3 min read

    In this article I teach you how to get started with Flask-SQLAlchemy. I will set up a model, create the DB, retrieve birthdays from FB and import them into the DB. Lastly I will query the birthdays by date range.


  • How to Write a Simple Slack Bot to Monitor Your Brand on Twitter

    ·

    ·

    4 min read

    In this article I show you how to monitor Twitter and post alerts to a Slack channel. We built a nice tool to monitor whenever our domain gets mentioned on Twitter. The slacker and twython modules made this pretty easy. We also use configparser and logging.