Twitter module
class twitter.TwitterAnalyzer
Bases: object
Twitter Sentiment Analyzer that contains a tweepy API. It can search most popular tweets, get subjectivity, polarity and a resume about any topic given.
Takes a topic, a number of tweets and language. Obtains n most recent tweets, applies NLP, generates a word cloud, computes subjectivity and polarity and creates several plots.
Takes a tweet text. Returns the tweet text without any mention, hashtag, RT or link.
Takes a score from a tweet. Returns the analysis (positive, negative or neutral).
Takes a tweet text. Returns just the lexical tokens.
Takes a tweet text. Returns the polarity.
Takes a topic. Returns the 3 most popular tweets about that topic.
Returns the value counts and percentages of the tweets analysis.
Takes a tweet text. Returns the subjectivity.
Takes a topic and a number of tweets. Returns the n most recent tweets about that topic.
Takes a topic and a number of tweets. Prints the n most popular tweets about the topic.
< Previous | Next > |
---|