The python back end of a data product that aims to get at the truthiness of Trump's tweets. It uses PyStruct.EdgeFeatureGraphCRF to leverage the tree structure of twitter replies to gage veracity by the amount of support of denial that his tweets elicit.
MIT License
1
stars
0
forks
source link
BUG: in test some tweets in `trump_tweets` are replies by the root user #65
Add to get_root_tweets.py
1) a loop that checks to make sure that no tweets in trump_tweets collection are replies and deletes them if they are.
2) a conditionals that checks if there is a value in in_reply_to_status_id and if there is writes it to the replies_to_trump collection if the the value is None write it to trump_tweets
Add to
get_root_tweets.py
1) a loop that checks to make sure that no tweets intrump_tweets
collection are replies and deletes them if they are. 2) a conditionals that checks if there is a value inin_reply_to_status_id
and if there is writes it to thereplies_to_trump
collection if the the value isNone
write it totrump_tweets