Commit 543d5a1a authored by Francesco Poldi's avatar Francesco Poldi

Added near to tweet and output

parent 812f3d4d
......@@ -27,6 +27,8 @@ def tweetData(t):
}
if t.retweet:
data.update({"user_rt_id": t.user_rt_id})
if t.near:
data.update({"near": t.near})
return data
def tweetFieldnames():
......@@ -55,7 +57,8 @@ def tweetFieldnames():
"retweet",
"quote_url",
"video",
"user_rt_id"
"user_rt_id",
"near"
]
return fieldnames
......
......@@ -96,4 +96,6 @@ def Tweet(tw, location, config):
if t.retweet:
t.user_rt_id = config.User_id
t.quote_url = getQuoteURL(tw)
if config.Near:
t.near = config.Near
return t
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