Commit 6be8a1cc authored by Francesco Poldi's avatar Francesco Poldi

Extended format

Added: conversation_id, name, place, urls, photos, video, user_rt_id, quote_url, near, geo

#485
#464
parent affa3759
......@@ -4,11 +4,17 @@ def Tweet(config, t):
if config.Format:
logme.debug(__name__+':Tweet:Format')
output = config.Format.replace("{id}", t.id_str)
output = output.replace("{conversation_id}", t.conversation_id)
output = output.replace("{date}", t.datestamp)
output = output.replace("{time}", t.timestamp)
output = output.replace("{user_id}", t.user_id_str)
output = output.replace("{username}", t.username)
output = output.replace("{name}", t.name)
output = output.replace("{place}", t.place)
output = output.replace("{timezone}", t.timezone)
output = output.replace("{urls}", t.urls)
output = output.replace("{photos}", t.photos)
output = output.replace("{video}", str(t.video))
output = output.replace("{tweet}", t.tweet)
output = output.replace("{hashtags}", str(t.hashtags))
output = output.replace("{cashtags}", str(t.cashtags))
......@@ -17,6 +23,10 @@ def Tweet(config, t):
output = output.replace("{likes}", t.likes_count)
output = output.replace("{link}", t.link)
output = output.replace("{is_retweet}", str(t.retweet))
output = output.replace("{user_rt_id}", t.user_rt_id)
output = output.replace("{quote_url}", t.quote_url)
output = output.replace("{near}", t.near)
output = output.replace("{geo}", t.geo)
output = output.replace("{mentions}", str(t.mentions))
else:
logme.debug(__name__+':Tweet:notFormat')
......
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