Inspiration

Donald Trump's ridiculous and controversial tweets are sometimes nonsensical and it can be hard to decipher whether a real person actually wrote them. These tweets strive to elicit the same response.

What it does

@fakeDonaldTrump is a rip on the actual presidential canditate's twitter account, @realDonaldTrump. It uses several hundred tweets from Donald Trump's twitter history along with a Markov Chain algorithm to predict Trump's next tweet.

How I built it

To build @fakeDonaldTrump, I downloaded and changed TehMillhouse's PyMarkovChain to better fit my needs, then I used Snap Bird to download the @realDonaldTrump's tweets. I then used TextMechanics' awesome RegEx functions to get rid of some of the junk like URLs, tweet dates, devices, etc. After that I wrote a simply Python script to tie it all together and let people see or even tweet their own ridiculous campaign slogans!

Built With

Share this project:

Updates