Commit 3493342a authored by andytnt's avatar andytnt

Added new data to meta

parent ff57d066
def tweetData(t): def tweetData(t):
data = { data = {
"id": int(t.id), "id": int(t.id),
"conversation_id": t.conversation_id,
"created_at": t.datetime,
"date": t.datestamp, "date": t.datestamp,
"time": t.timestamp, "time": t.timestamp,
"timezone": t.timezone, "timezone": t.timezone,
"user_id": int(t.user_id), "user_id": t.user_id,
"username": t.username, "username": t.username,
"name": t.name,
"place": t.place,
"tweet": t.tweet, "tweet": t.tweet,
"replies": int(t.replies_count), "tags": t.tags,
"retweets": int(t.retweets_count), "replies": t.replies,
"likes": int(t.likes_count), "mentions": t.mentions,
"urls": t.urls,
"photos": t.photos,
"replies_count": int(t.replies_count),
"retweets_count": int(t.retweets_count),
"likes_count": int(t.likes_count),
"location": t.location, "location": t.location,
"hashtags": t.hashtags, "hashtags": t.hashtags,
"link": t.link, "link": t.link,
"retweet": t.retweet, "retweet": t.retweet,
"mentions": t.mentions "gif_url": t.gif_url,
"gif_thumb": t.gif_thumb,
"video_url": t.video_url,
"video_thumb": t.video_thumb,
"is_quote_status": t.is_quote_status,
"quote_id": t.quote_id,
"quote_url": t.quote_url,
"is_reply_to": t.is_reply_to,
"has_parent_tweet": t.has_parent_tweet
} }
return data return data
def tweetFieldnames(): def tweetFieldnames():
fieldnames = [ fieldnames = [
"id", "id",
"conversation_id",
"created_at",
"date", "date",
"time", "time",
"timezone", "timezone",
"user_id", "user_id",
"username", "username",
"name",
"place",
"tweet", "tweet",
"tags",
"replies", "replies",
"retweets", "mentions",
"likes", "urls",
"photos",
"replies_count",
"retweets_count",
"likes_count",
"location", "location",
"hashtags", "hashtags",
"link", "link",
"retweet", "retweet",
"mentions" "gif_url",
"gif_thumb",
"video_url",
"video_thumb",
"is_quote_status",
"quote_id",
"quote_url",
"is_reply_to",
"has_parent_tweet"
] ]
return fieldnames return fieldnames
...@@ -55,7 +89,8 @@ def userData(u): ...@@ -55,7 +89,8 @@ def userData(u):
"media": int(u.media_count), "media": int(u.media_count),
"private": u.is_private, "private": u.is_private,
"verified": u.is_verified, "verified": u.is_verified,
"avatar": u.avatar "avatar": u.avatar,
"background_image": u.background_image
} }
return data return data
...@@ -76,7 +111,8 @@ def userFieldnames(): ...@@ -76,7 +111,8 @@ def userFieldnames():
"media", "media",
"private", "private",
"verified", "verified",
"avatar" "avatar",
"background_image"
] ]
return fieldnames 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