ta.TwitterDB.setFocusedDataConfigs

TwitterDB.setFocusedDataConfigs(strFocusedTweetFields, strFocusedTweetUserFields)[source]

Twitter documents have an extensive number of fields. In order to focus only on the interesting pieces of information, this method allows you to choose which fields to keep.

Parameters
  • strFocusedTweetFields (fields that you find interesting in the Tweet object)

  • strFocusedTweetUserFields (fields that you find interesting in the User object)

Examples

Setting configurations to decide which fields to keep:

>>> focusedTweetFields = 'lang;retweet_count;in_reply_to_screen_name'
>>> focusedTweetUserFields = 'name;description;location;friends_count;verified'
>>> setFocusedDataConfigs(focusedTweetFields, focusedTweetUserFields)