Mary Dickson Diaz

Code, Life, Learning

Tag: bletchley

top bot

OK, you want to talk bots? Let’s talk bots! First, let’s go back…

WAAAAAY back. A few weeks ago, I got a nice mention on Twitter from a procrastinating grad student who found my tutorial and used it to set up Ecce , a Publilius Syrus twitterbot (I had to wikipedia that).

Continue reading

build a twitter bot with python

This year I set out to learn how to make twitter bots, accounts that automatically interact with twitter in some way, whether through tweeting set content at regular intervals, watching for and responding to code words, or responding in a certain way when tweeted at. I learned the basics of Twitter API interaction at UW’s Community Data Science Workshop last November, and have since been inspired by other people doing cool stuff with bots.

Witness:

For more great examples, check out 52bot project.

A few nights ago, as I was reading about the reunion of the women of Bletchley Park, I clicked through to the Honour Roll and found a database that looked like it might translate well into a twitterbot. Using a subset of data and some internet tutorials, a test bot took maybe an hour or two tops to set up (and I was so thrilled when it worked!). The time-consuming part has been 1) finding a way to reliably keep it tweeting; and 2) pulling and cleaning up the full dataset to fit twitter’s 140 character limit (in my test run, I just told twitter “print the first 140 characters and ignore the rest” but for the full deployment, I wanted to edit the longer bios to make them fit).

Ok, so without further ado, here’s the bot:

And here’s how I made it!: Continue reading

f.read()

Bletchley Park Commemorative Badge

Bookmarked this week:

  1. Emotional reunion after 70 years for Bletchley Park veterans – I haven’t seen Imitation Game yet, but I did watch (and enjoy) Bletchley Circle. So inspiring to see the real Wrens here reunited and as sharp as ever. Click through the image above to peek at the Roll of Honour. (Also, that looks like it might make a great Twitterbot project… hmmm…)
  2. Retiring Python as a Teaching Language — James Hague makes a case for learning JavaScript first. I can commiserate with the sentiment of “but what can I doooo with Python” — I’m trying to figure out a way to get my neat-o credit card program onto this webpage in an interactive format. I started playing around with django, which I think will let me do that? But there could probably be an easier way.
  3. 10 things you need to know before applying to a code school — and if you’re in Seattle, you might want to attend “A glimpse into disruptive web development education” next Tuesday evening, with representatives from General Assembly, Code Fellows, and Ada Developers Academy, including instructors, students, and business development partners from the hiring side, discussing their respective education models.” It’s like they planned it *for me*. Do not miss!
  4. Programing doesn’t belong to men (it belongs to me) – by Julia Evans. Get it, girl.

© 2017 Mary Dickson Diaz

Theme by Anders NorenUp ↑