Fetch entities object from Twitter::SearchResults object

7 views
Skip to first unread message

theasteve

unread,
Feb 8, 2018, 2:02:12 PM2/8/18
to Twitter Ruby Gem
Hi All,

I'm currently trying to fetch all the photos from all tweets that use a certain Hashtag. I also need to rank the photos based on the number of retweets. I'm having difficulty because I get a Twitter::SearchResults but I want to access the entities object within this object. I'm using the following query:

client.search("#nyctech", { tweet_mode: "extended", include_entities: true, fromDate:"201801071200",toDate:"201802071200", entities: true })

Now I have found it difficult to access the entities object from  the  Twitter::SearchResults object.  I have attached an image of how I tried to access entities. Any support or feedbck would be highly appreciated it. Thank You.
Screen Shot 2018-02-08 at 1.38.07 PM.png
Reply all
Reply to author
Forward
0 new messages