How to Use Pdb to Debug Your Code

Posted by Bob on Tue 24 October 2017 in Modules • Tagged with pdb, debugging, troubleshooting, bugs, modules • 5 min read

The larger part of our coding time is spent reading and debugging code already written. For this Python's pdb is an unmissable module in your Python toolbox. In this article I show you the most common options and some practical examples.


Continue reading

Module of the Week: Openpyxl - Automate Excel!

Posted by Bob on Tue 12 September 2017 in Modules • Tagged with excel, games, first script, vba, automation, openpyxl, hacking, unix • 3 min read

You probably remember your first script. I remember the joy of discovering how I could let the machine automate something for me. It still gets me excited everyday. I played a bit with openpyxl yesterday. I used it to hack an Excel game for which I first used a macro. Not particularly useful but a nice exploration of this module.


Continue reading

Fully Automate Login and Banner Generation with Selenium, Requests and Click

Posted by Bob on Sun 20 August 2017 in Modules • Tagged with Selenium, Requests, selenium-requests, Click, Pillow, automation, scraping, tools, PyBites Banner Generator, images • 3 min read

In part 3 of the PyBites Banner Generator article series I show you how to automatically generate a banner with Requests and Selenium.


Continue reading

Using Pillow to Create Nice Banners For Your Site

Posted by Bob on Fri 11 August 2017 in Modules • Tagged with Pillow, images, utilities, pybites, curl, refactoring, challenges, PyBites Banner Generator • 4 min read

Running your site or business good chance you A. use promo material like banners and B. you make them manually with Photoshop, Gimp or what not. And yes for anything beyond the basics you probably need those programs. But what if you like to keep it simple and want to semi-automate things? Just an image and text on canvas? Enter Pillow - The friendly PIL fork, which makes this pretty easy. Come explore some of its capabilities with me in this article.


Continue reading

Module of the Week - Pexpect

Posted by Julian on Thu 27 July 2017 in Modules • Tagged with python, tips, code, pybites, pexpect, automation • 3 min read

A brief overview of the pexpect module


Continue reading

Module of the Week - Pendulum

Posted by Julian on Sat 24 June 2017 in Modules • Tagged with python, tips, code, pybites, pendulum, datetime, pytz, timezones • 2 min read

A brief overview of the Pendulum datetime module.


Continue reading

Using Python Requests on a Page Behind a Login

Posted by Julian on Fri 09 June 2017 in Modules • Tagged with requests, code, web scraping, python • 4 min read

In this post I discuss using the requests module on web pages behind a login


Continue reading

Module of the Week - ipaddress

Posted by Julian on Thu 23 March 2017 in Modules • Tagged with python, tips, code, pybites, ipaddress, sysadmin, stdlib • 3 min read

While playing around with code for our post on generators we discovered the ipaddress module, part of the Standard Library. Such a handy little module!


Continue reading

Module of the Week - Requests-cache for Repeated API Calls

Posted by Bob on Tue 14 March 2017 in Modules • Tagged with requests, cache, APIs, package • 2 min read

Today a quick article on a nice caching module when working with APIs: Requests-cache.


Continue reading

5 cool things you can do with itertools

Posted by Bob on Thu 12 January 2017 in Modules • Tagged with iterators, itertools, tricks, generators, game, notebooks, permutations • 2 min read

Itertools is a very useful module. In this short post I show some 5 examples how you can use it. Some of this stuff might be useful in next week's challenge ...


Continue reading