ta.TwitterDB.loadUsersData

TwitterDB.loadUsersData(inc, user_type_filter)[source]

Method to load user data into mongoDB. It creates collection users

Parameters
  • inc – used to determine how many tweets will be processed at a time. A large number may cause out of memory errors, and a low number may take a long time to run, so the decision of what number to use should be made based on the hardware specification. the string to clean

  • user_type_filter – the type of user you want to load - (Options: tweet, retweet, quote, reply and mention)

Examples

>>> loadUsersData(50000, 'tweet')