User tweets

Each user's labeled tweets must be stored locally to be used for generating user features. To fetch a user's tweets, a search is done on all tweets associated with a user using the following MongoDB query. More info about the tweets collection here.

{
    {'user': username}, 
    {"$or": 
        [{'isBull': True}, {'isBull': False}] 
    }
}

Once tweets are fetched, the only information saved is the time, symbol, and bull/bear sentiment associated with each tweet. The data for each user is then stored in the user_tweets folder as CSV files (ex. user_tweets/lemurback.csv).

Last updated