the code is in the file name "sent.py"
Note: You have to use "tweepy" in order to aquire the data plus you have to make a twitter app heres the link of video tutorial https://www.youtube.com/watch?v=JDPltpPyqc4
and most importantly you to have use "aylien api" which is the widely used API for "Natural Language Processing"