[PR]

StreamRule

class tweepy.StreamRule(value: str | None = None, tag: str | None = None, id: str | None = None)

Rule for filtered stream

バージョン 4.6 で追加.

パラメータ:
  • 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.