Inspired by Darwin twittering, I got an account for Francisco I. Madero, initial leader of the Mexican Revolution of 1910. Write now I have him twittering random quotes from his book, The Presidential Succession. This is topical since the 100 anniversary of the Mexican Revolution is about to hit the next year. I got to make some changes to the script so that it will hash out certain key terms. Madero is exclusively twittering in Spanish :P
The code is below:
require 'grackle'
file = IO.readlines("maderobook.txt")
randomLine = rand(file.length) + 1