November 2019
Intermediate to advanced
346 pages
9h 36m
English
In the following steps, we demonstrate how to use machine learning to create a spear phishing Twitter bot:
import jsonimport tweepyCONSUMER_API_KEY = "fill me in"CONSUMER_API_SECRET_KEY = "fill me in"ACCESS_TOKEN = "fill me in"ACCESS_TOKEN_SECRET = "fill me in"auth = tweepy.OAuthHandler(CONSUMER_API_KEY, CONSUMER_API_SECRET_KEY)auth.set_access_token(ACCESS_TOKEN, ACCESS_TOKEN_SECRET)api = tweepy.API( auth, wait_on_rate_limit=True, wait_on_rate_limit_notify=True, compression=True)