[英]How to exclude TWEETS with Tweepy? Python
how's it going?怎么样了?
If I want to exclude retweets from my search query, I use 'searchQuery -filter:retweets'
.如果我想从我的搜索查询中排除转推,我使用'searchQuery -filter:retweets'
。 Ok?好?
But how do I exclude tweets, to return only REtweets?但是我如何排除推文,只返回 REtweets? 'searchQuery -filter:tweets'
does not work properly or maybe it really does not work. 'searchQuery -filter:tweets'
不能正常工作,或者它真的不能工作。
Thanks!!谢谢!!
When you add the -
before the filter, you are actually filtering out.当您在过滤器之前添加-
时,您实际上是在过滤掉。 Like seen in the documentation .就像在文档中看到的那样。 So to include retweet you must only put filter:retweets
所以要包括转推,你必须只放filter:retweets
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.