Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
This is a quick bash script to make your Mac speak a random line from Donald Trump's Washington Post Editorial Interview. Because it sounds even crazier spoken by your computer. Just copy and paste into your terminal and hit return.
curl -s -N --location \
| perl -0ne 'my @list = $_ =~ m/<p>TRUMP:(.*?)<\/p>/smg; print $list[rand @list]' \
| say --progress -i -r 300 -v Alex
Copy link

nilsjesper commented Nov 23, 2016

Updated with now president-elect Trump's NYTimes editorial round table

curl -s -b -N --location \
| 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