I want to fetch all the images from tweets with a certain hashtag within the last month. I'm currently using Ruby. In my index.rb file I'm trying to store the following code in a variable:
@photos = client.search('#bestfriends', { include_entities: true, fromDate:"201801071200>",toDate:"201802071200", include_entities: true })
However, when I run this on the command line I get the following:
{:statuses=>
[{:created_at=>"Thu Feb 08 00:15:10 +0000 2018",
:id=>961392929762938880,
:id_str=>"961392929762938880",
:text=>
"FCC Says Releasing 'Jokes' It Wrote About Ajit Pai Illegally Colluding With Verizon (WHICH HAPPENED) Would 'Harm' A… ",
:truncated=>true,
:entities=>
{:hashtags=>[],
:symbols=>[],
:user_mentions=>[],
:urls=>
As you can see from :hashtags=>[], hashtags are empty, I there a way to fetch the tweets based on hashtags from a date range? I am using https://github.com/sferik/twitter but dont know if is better to use https://github.com/twitter/twurl since is from the command line.
tweet_mode=extended@AndyPiper in the query? I mean something like this:client.search('#bestfriends', { tweet_mode: extended, include_entities: true, fromDate:"201801071200>",toDate:"201802071200", include_entities: true })- Steven Aguilar:entitiesthat:urlsare not empty? - Steven Aguilar