//TODO
Fetch several tweets from twitter API using some keywords and filters
Validation 1: Remove tweets whose author have <50 followers
Parse the tweet
Parsing Logic
Mark tweets with a '?' to needManualVerification
.......
Create a final tweet object using the original tweet data and the data generated by parsing the tweet.
Schema:
const obj = {
type: data.type,
categories: data.categories,
roles: data.roles,
email: data.emails,
urls: data.urls,
created_by: tweet.user.name,
created_on: new Date(tweet.created_at).getTime(),
need_manual_verification: data.need_manual_verification,
tweet_id: tweet.id_str,
tweet_url: `https://twitter.com/${tweet.user.screen_name}/status/${tweet.id_str}`,
author_id: tweet.user.id_str,
text: data.stripped_text,
likes: tweet.favorite_count,
retweets: tweet.retweet_count,
tweet_ast: tweetAst,
author_followers: tweet.user.followers_count,
};
Validation 2: Filter out if the tweet has no roles assigned by the parser.