Monthly Archives: September 2017

Proper Handling of Exceptions in Python

With some free time on my hands, I sat down to update my code that extracts tweets from my tweet collection based on user-supplied keywords or locations. ┬áIn doing that, however, I ended up making a major improvement, one that should have existed from day one. You see, simply trying to read a file of […]

I prefer simplejson to json

I thought I was going to spend some time on Friday analyzing tweets from Cameroon. ┬áInstead, starting that process led me down a rabbit hold that has, I hope, culminated in me realizing I should have used Python’s simplejson library this whole time. A script of mine used a try-except sequence to enclose the section […]