0

I am currently listening from certain users by using these rules:

'value': 'from:user1 OR from:user2 OR ...'

And as a result I get tweets, retweets and quotes of these users. But, I also need to stream all retweets that include tweets of these users, since I need their public metrics like retweet count, like count and etc.

Let me explain with an example: if one of users that is included in the the rules say, user1 tweets TWEET, I can listen it. But, when a user that is not included in the rules say, user3 retweets that TWEET of user1, I cannot listen it. But I need to, since I want to keep track of public metrics of TWEET posted by user1.

To achive this I modified rule like this:

'value': 'from:user1 OR @user1 OR from:user2 OR @user2...'

and it works fine.

However, is there a way to include short rule to achieve what I want for every user I include in streaming rules? Since currently I am listening more that 1.5k users, I might exhaust charachter limit of streaming rules.

P.S. I am using Python and Twarc.Client2 with Elevated Access to the API.

Thank you in advance.

Shanazar
  • 54
  • 6

0 Answers0