简体   繁体   中英

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' . Ok?

But how do I exclude tweets, to return only REtweets? 'searchQuery -filter:tweets' does not work properly or maybe it really does not work.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM