Parsing Twitter Geo Data and Mocking API Calls by Example

Posted by Bob on Sat 17 June 2017 in Learning • Tagged with twitter, API, mock, geo, data, unittest, pickle, tweepy, testing, 100days • 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.


Continue reading

How we Automated our 100DaysOfCode Daily Tweet

Posted by Bob on Wed 05 April 2017 in Tools • Tagged with twitter, automation, tools, 100days, logging, tweepy, pytz • 4 min read

In this article I show you a way to automatically tweet your #100DaysOfCode Challenge progress. This saves you some extra time to focus on the coding. Isn't that all what matters?


Continue reading

Automate Tweeting: how to build a Twitterbot

Posted by Bob on Thu 29 December 2016 in Tools • Tagged with twitterapi, tweepy, feedparser, rss, logging, podcasts, virtualenv, pyvenv, venv, news, 3.6 • 3 min read

In this post I will show you how we automate part of our Twitter posting using feedparser and tweepy.


Continue reading