[10.10.20] Testing
This commit is contained in:
parent
044fd62dcf
commit
0c41b72602
@ -82,8 +82,6 @@ class Listener(StreamListener):
|
||||
|
||||
def on_data(self, data):
|
||||
|
||||
log("Received Tweet...", 'INFO')
|
||||
|
||||
if (time() - self.start_time) < self.limit:
|
||||
data = json.loads(data)
|
||||
|
||||
@ -108,6 +106,8 @@ def processTweet():
|
||||
processStack = dumpStack
|
||||
dumpStack.clear()
|
||||
|
||||
log("Processing Tweets Stack...", 'INFO')
|
||||
|
||||
if len(processStack) != 0:
|
||||
for tweet in processStack:
|
||||
removedLines = fixLines(tweet["tweet"])
|
||||
@ -167,6 +167,8 @@ def createHourJob():
|
||||
|
||||
processTweet()
|
||||
|
||||
log("Extracting sentiment scores...", 'INFO')
|
||||
|
||||
if len(hourStack) != 0:
|
||||
for item in hourStack:
|
||||
ovPos = ovPos + item['pos']
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user