Commit ff57d066 authored by andytnt's avatar andytnt

Fix json

parent d0fb0292
...@@ -7,15 +7,14 @@ def tweetData(t): ...@@ -7,15 +7,14 @@ def tweetData(t):
"user_id": int(t.user_id), "user_id": int(t.user_id),
"username": t.username, "username": t.username,
"tweet": t.tweet, "tweet": t.tweet,
"replies": int(t.replies), "replies": int(t.replies_count),
"retweets": int(t.retweets), "retweets": int(t.retweets_count),
"likes": int(t.likes), "likes": int(t.likes_count),
"location": t.location, "location": t.location,
"hashtags": ",".join(t.hashtags), "hashtags": t.hashtags,
"link": t.link, "link": t.link,
"retweet": t.retweet, "retweet": t.retweet,
"user_rt": t.user_rt, "mentions": t.mentions
"mentions": ",".join(t.mentions)
} }
return data return data
...@@ -35,7 +34,6 @@ def tweetFieldnames(): ...@@ -35,7 +34,6 @@ def tweetFieldnames():
"hashtags", "hashtags",
"link", "link",
"retweet", "retweet",
"user_rt",
"mentions" "mentions"
] ]
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