Code Challenge 44 – Marvel Data Analysis (Alicante PyChallengeDay)

Hi Pythonistas, this is a very special edition! Today, the 10th of November, we launch our first Live Code Challenge. We partnered up with Python Alicante and we will be hosting this code challenge with them at the University of Alicante. If you don’t happen to live in Alicante but do want to code today 10am-13pm CET you are more than welcome to join this Gitter channel.

Parsing Twitter Geo Data and Mocking API Calls by Example

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