Skip to content

Instantly share code, notes, and snippets.

@nilsjesper
Last active November 23, 2016 17:30
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nilsjesper/4e383f5a95d05ba7dd2d617b156f2d3a to your computer and use it in GitHub Desktop.
Save nilsjesper/4e383f5a95d05ba7dd2d617b156f2d3a to your computer and use it in GitHub Desktop.
Takes a random Trump statement from his NY Times round-table and has your computer speak it. To chilling effect.
curl -s -b -N --location http://www.nytimes.com/2016/11/23/us/politics/trump-new-york-times-interview-transcript.html \
| perl -0ne 'my @list = $_ =~ m/>TRUMP:(.*?)<\/p>/smg; print $list[rand @list]' \
| say -i -r 300 -v Alex
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment