#gifandcircumstance by Allison Parrish

Screen capture from #gifandcircumstance by Adam Parrish. Team Illuminate's glow in the dark dance from America's Got Talent. Text: "If I were your man..."
Open #gifandcircumstance by Allison Parrish

This bot mines the Twitter stream for phrases starting with “when,” extracts the clauses, and joins each phrase with a randomly selected animated GIF in a Tumblr. Here’s a more detailed description from Parrish’s blog:

A “#whatshouldwecallme-style tumblr” is one in which animated GIFs are paired with a title expressing a circumstance or mood—usually a clause beginning with “when.” I wrote a Python script to make these kinds of posts automatically. Here’s what it does:

(1) Search Twitter for tweets containing the word “when.”
(2) Extract the “when” clause from such tweets.
(3) Use Pattern to identify “when” clauses with suitable syntax (i.e., clauses in which a subject directly follows “when”; plus some other heuristic fudging)
(4) Post the “when” clause as the title of a tumblr post, along with an animated GIF randomly chosen from the imgur gallery.

Read more

Share the ♥.