Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
an example of tweet json
db.collection.aggregate([
{$project: {
_id:0,
account: "$user.screen_name",
tid: "$id",
text: {$ifNull: ["$retweeted_status.text", "$text"]},
date: "$created_at",
RT: {$cond: [
{$not: ["$retweeted_status"]},
false,
true
]},
QT: {$ifNull: ["$quoted_status.text", false]},
}
},
{$out: "tweets_userlist_csiro_csv"}
])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment