0

I need some help with tweets. My code works in that it prints all requested tweets from the user timeline but it does it all in yellow and i'm struggling to figure out why. Analyzer works fine with smile. Thanks in advance for your help

here is analyzer: enter image description here

and tweets: enter image description here

1

The most serious error I see in the first view is on the next line:

file = open(positives, "r")

keep in mind that both positives and negatives are variables that are meant to be a (disordered) set of lines that will later be analyzed for positive or negative words, but still contains nothing, what we have to do is open the actual file on disk (like fopen in C):

file = open("positive-words.txt", "r")

The same applies for the negative-words.txt file.

1
  • thanks good point! I will arrange that and see what it gives – Adel Tirouche Sep 9 '17 at 7:51

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .