[15.10.20] Testing
This commit is contained in:
parent
3c25310d76
commit
5c832a70fe
@ -189,7 +189,7 @@ def createHourJob():
|
||||
|
||||
if len(processStack) != 0:
|
||||
log("Process stack size is :: [{}]".format(len(processStack)), 'INFO')
|
||||
for item in hourStack:
|
||||
for item in processStack:
|
||||
ovPos = ovPos + item['pos']
|
||||
ovNeu = ovNeu + item['neu']
|
||||
ovNeg = ovNeg + item['neg']
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
#!/usr/bin/env python
|
||||
|
||||
from src.utils.jsonLogger import log
|
||||
from utils.jsonLogger import log
|
||||
|
||||
whitelist = [
|
||||
"bull",
|
||||
@ -140,12 +140,15 @@ whitelist = [
|
||||
"sucking",
|
||||
"shard",
|
||||
"sharding",
|
||||
"industry"
|
||||
"industry",
|
||||
"powerful",
|
||||
"better",
|
||||
"worse"
|
||||
]
|
||||
|
||||
def filterOutTweetsWithNoneWhitelistedWords(text):
|
||||
if any(x in text for x in whitelist):
|
||||
return text
|
||||
else:
|
||||
log("Tweet [{}] did not contain any keywords for it to be considered crypto related".format(text), 'WARN')
|
||||
# log("Tweet [{}] did not contain any keywords for it to be considered crypto related".format(text), 'WARN')
|
||||
return ""
|
||||
Loading…
x
Reference in New Issue
Block a user