Skip to content

Instantly share code, notes, and snippets.

View akash-mitra's full-sized avatar
👋
Hi

Akash Mitra akash-mitra

👋
Hi
View GitHub Profile
import re
import tweepy
import flair
import datetime
class TwitterSentimentAnalyzer:
twitter_api = None
whitespace = re.compile(r"\s+")
web_address = re.compile(r"(?i)http(s):\/\/[a-z0-9.~_\-\/]+")
user = re.compile(r"(?i)@[a-z0-9_]+")