Commit e913c338 authored by cbjrobertson's avatar cbjrobertson Committed by Cody Zacharias

Adding mentions output to Pandas, and bug fix for issue #152 (Unicode encode error) (#153)

* update unicode encode error fix

* added mentions to pandas output

* added unicode encode error debug and mentions output for pandas
parent 5a9947f8
......@@ -24,7 +24,8 @@ def update(Tweet, session):
"link": Tweet.link,
"retweet": Tweet.retweet,
"user_rt": Tweet.user_rt,
"essid": str(session)
"essid": str(session),
'mentions': Tweet.mentions
}
_blocks.append(_data)
......
......@@ -42,7 +42,10 @@ def _output(obj, output, config):
if config.Store_object:
tweets_object.append(obj)
else:
print(output)
try:
print(output)
except UnicodeEncodeError:
pass
async def Tweets(tw, location, config, conn):
copyright = tw.find("div", "StreamItemContent--withheld")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment