twitter-search

What parameters will Twitter lib's fetchTweets() method accept

假装没事ソ 提交于 2020-01-06 21:59:12
问题 I've created a twitter bot for retweeting and liking tweets using Agarwal's tutorial which uses the Twitter lib library for searching tweets. I'm using Twitterlib version 21 in my project. It seems to work for the most part, but I have one particular problem. When I include the "min_retweets:X" parameter in my search, it doesn't seem to be recognized. This is not an officially documented search parameter but it does work when you use it in normal twitter searches on the site and returns only

Get Tweets with Pictures using twitter search api

*爱你&永不变心* 提交于 2019-11-27 12:56:40
Is it possible to get tweets which contain photos? I am currently using twitter search api and getting all the tweets having entity details by setting include_entities=true. I see picture details under media object but is there anyway to filter and get tweets objects which just have these media items. Or is there anyway in Twitter4j to do this query? Abhishek Sivasubramanian There is no specific way to specify that I need only photos or videos but you can filter the results based on filter:links or filter:images or filter:videos in your query along with include_entities=true . For Example: To

Get Tweets with Pictures using twitter search api

点点圈 提交于 2019-11-26 16:10:16
问题 Is it possible to get tweets which contain photos? I am currently using twitter search api and getting all the tweets having entity details by setting include_entities=true. I see picture details under media object but is there anyway to filter and get tweets objects which just have these media items. Or is there anyway in Twitter4j to do this query? 回答1: There is no specific way to specify that I need only photos or videos but you can filter the results based on filter:links or filter:images