pliers.stimuli.TweetStim¶
- class pliers.stimuli.TweetStim(status)[source]¶
Bases:
CompoundStim
Represents the text and associated media from a single tweet.
- Parameters
status (python-twitter Status object) – the Status from which to extract information, can either be generated from the TweetFactory or user-provided.
- get_stim(type_, return_all=False)¶
Returns component elements of the specified type.
- Parameters
- Returns
If return_all is True, a list of matching elements (or an empty list if no elements match). If return_all is False, returns the first matching Stim, or None if no elements match.
- get_types()¶
Return tuple of types of all available Stims.
- has_types(types, all_=True)¶
Check whether the current component list matches all Stim types in the types argument.