StreamRule

class tweepy.StreamRule(value: Optional[str] = None, tag: Optional[str] = None, id: Optional[str] = None)

Rule for filtered stream

New in version 4.6.

Parameters
  • value (str | None) – The rule text. If you are using a Standard Project at the Basic access level, you can use the basic set of operators, can submit up to 25 concurrent rules, and can submit rules up to 512 characters long. If you are using an Academic Research Project at the Basic access level, you can use all available operators, can submit up to 1,000 concurrent rules, and can submit rules up to 1,024 characters long.

  • tag (str | None) – The tag label. This is a free-form text you can use to identify the rules that matched a specific Tweet in the streaming response. Tags can be the same across rules.

  • id (str | None) – Unique identifier of this rule. This is returned as a string.