Getting ready

Preparation for this recipe consists of installing the tweepy and markovify packages in pip. The instructions are as follows:

pip install tweepy markovify

Also, you will need to set up a developer account on Twitter. The process is relatively simple and account creation is free.

Get Machine Learning for Cybersecurity Cookbook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.