This semester, I’m teaching a class in Story Bots, which is really a programming class disguised as a journalism class. I’m teaching students enough programming that they can automate journalistically useful things, things like scrape a website and alert you to a potential story. Or take a dataset and turn each record into a journalistic narrative.
One of the assignments was to make a Twitter bot. They could do what they wanted with it, but it had to use Twitter and had to run on a simple cron job. It had to tweet, and they had to put their bot on Github when they were done (sans access keys).
Here’s what they came up with.
Lady Plath takes a line from a Sylvia Plath poem and a line of Lady Gaga lyrics and randomly combines them into gloriously weird tweets. Example:
Hearted gambling-game you warily practice I’m in love with Judas
— Lady Plath (@sylviagagaplath)November 18, 2014
This bot goes to the National UFO Reporting Center and checks for new reports in Nebraska. If it finds one, it tweets it out. Example:
10/30/04 Lincoln, Two red lights. It was like they were on each end of a bar and just moving slowly from the east… http://t.co/Ud7LNhijhp
— Nebraska UFOs (@NebraskaUFOs)October 30, 2014
Random Homer Simpson Quote bot by Jordan Tate
A select few people who hashtag something #HomerSimpson will get a randomly chosen quote response from the Random Homer Simpson Quote bot. Does what it says on the tin.
@lucioolima What do we need a psychiatrist for? We know our kid is nuts.
— Random Homer QUOTES: (@RNDM_HomerSays)November 20, 2014
Tarantino ebooks by Tony Papousek
This bot does two things: uses Markov chains to write a new Tarantino script, 140 characters at a time, and responds to anyone who tweets “English motherf***er, do you speak it” with a simple “What?” (If you haven’t seen Pulp Fiction, shame on you).
As he tosses his other glove out the register,“ and they don’t lift a fuckin’ joke man! She’s supposed to be much of a bag of water
— Tarantino Ebooks (@tarantinoebooks)November 20, 2014
Rebel_ebooks by Spencer Hansen
Excited for the new Star Wars movie? Read lines of dialogue before they appear on screen though the miracles of Markov chains of the Empire Strikes Back script (the best movie, FYI).
Feel the flow
— rebel_ebooks (@rebel_ebooks)November 3, 2014
Matt Waite ebooks by Daniel Wheaton
I like to think I run my classes a little different from most other university courses and it’s conversations like this that give me hope it’s true:
Daniel: “Can I have your complete Twitter archive?”
Matt: “Uh, why?”
Daniel: “I don’t want to say.”
Matt: “Sure, why not.”
And then this happens.
Con: good luck getting those songs out of math
— MattWaitEbooks (@MattWaitEbooks)November 20, 2014
In the interests of shared suffering, I made my own. It’s pretty tame by comparison.
LNK Lost Dog Bot by Matt Waite
The City of Lincoln has a Lost Pets page, where they put reports of lost animals. I scrape the dogs and tweet out the new ones with a number to call if you’ve seen them. Simple.
A chocolate Labrador Retriever went missing near 7400 Blk S 95 Ct on Nov. 19. If you see ’em, please call Animal Control at 402-441-7900.
— LNK Missing Dog Bot (@LNKdogbot)November 20, 2014
With all this grading to do, I haven’t put my code up.