Commit 55bcd55c authored by Francesco Poldi's avatar Francesco Poldi

Added Geo to csv and json

parent e3652fbb
......@@ -27,8 +27,14 @@ def tweetData(t):
}
if t.retweet:
data.update({"user_rt_id": t.user_rt_id})
if t.near:
try:
data.update({"near": t.near})
except AttributeError:
pass
try:
data.update({"geo": t.geo})
except AttributeError:
pass
return data
def tweetFieldnames():
......@@ -58,7 +64,8 @@ def tweetFieldnames():
"quote_url",
"video",
"user_rt_id",
"near"
"near",
"geo"
]
return fieldnames
......
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