Ruby on rails Twitter API搜索:结果中没有媒体url

Ruby on rails Twitter API搜索:结果中没有媒体url,ruby-on-rails,json,twitter,Ruby On Rails,Json,Twitter,我正在执行以下Twitter API请求: https://api.twitter.com/1.1/search/tweets.json?q=%23WOMGif 我得到的结果之一是: {:metadata=>{:iso_language_code=>"es", :result_type=>"recent"}, :created_at=>"Tue Oct 27 19:05:18 +0000 2015", :id=>659083467276361728, :id

我正在执行以下Twitter API请求:

https://api.twitter.com/1.1/search/tweets.json?q=%23WOMGif
我得到的结果之一是:

{:metadata=>{:iso_language_code=>"es", :result_type=>"recent"},
 :created_at=>"Tue Oct 27 19:05:18 +0000 2015",
 :id=>659083467276361728,
 :id_str=>"659083467276361728",
 :text=>
  "cuando me dijieron que @womchile @WomChileCL va a tener 4g #WomGif https://t.co/x9nOwPosdP",
 :source=>
  "<a href=\"http://twitter.com\" rel=\"nofollow\">Twitter Web Client</a>",
 :truncated=>false,
 :in_reply_to_status_id=>nil,
 :in_reply_to_status_id_str=>nil,
 :in_reply_to_user_id=>nil,
 :in_reply_to_user_id_str=>nil,
 :in_reply_to_screen_name=>nil,
 :user=>
  {:id=>119559070,
   :id_str=>"119559070",
   :name=>"Israel muñoz arevalo",
   :screen_name=>"blackisra",
   :location=>"",
   :description=>"diseñador 3d, infografo, musico, futbolero...",
   :url=>"http://t.co/DI7Kq8jr6W",
   :entities=>
    {:url=>
      {:urls=>
        [{:url=>"http://t.co/DI7Kq8jr6W",
          :expanded_url=>"http://israel.wide.cl",
          :display_url=>"israel.wide.cl",
          :indices=>[0, 22]}]},
     :description=>{:urls=>[]}},
   :protected=>false,
   :followers_count=>128,
   :friends_count=>181,
   :listed_count=>0,
   :created_at=>"Thu Mar 04 00:46:38 +0000 2010",
   :favourites_count=>91,
   :utc_offset=>-10800,
   :time_zone=>"Atlantic Time (Canada)",
   :geo_enabled=>true,
   :verified=>false,
   :statuses_count=>3598,
   :lang=>"en",
   :contributors_enabled=>false,
   :is_translator=>false,
   :is_translation_enabled=>false,
   :profile_background_color=>"131516",
   :profile_background_image_url=>
    "http://abs.twimg.com/images/themes/theme14/bg.gif",
   :profile_background_image_url_https=>
    "https://abs.twimg.com/images/themes/theme14/bg.gif",
   :profile_background_tile=>true,
   :profile_image_url=>
    "http://pbs.twimg.com/profile_images/486269167490699264/qyA3H5gF_normal.jpeg",
   :profile_image_url_https=>
    "https://pbs.twimg.com/profile_images/486269167490699264/qyA3H5gF_normal.jpeg",
   :profile_banner_url=>
    "https://pbs.twimg.com/profile_banners/119559070/1404771189",
   :profile_link_color=>"00BBCC",
   :profile_sidebar_border_color=>"000000",
   :profile_sidebar_fill_color=>"000000",
   :profile_text_color=>"FFFFFF",
   :profile_use_background_image=>true,
   :has_extended_profile=>false,
   :default_profile=>false,
   :default_profile_image=>false,
   :following=>false,
   :follow_request_sent=>false,
   :notifications=>false},
 :geo=>nil,
 :coordinates=>nil,
 :place=>nil,
 :contributors=>nil,
 :is_quote_status=>false,
 :retweet_count=>0,
 :favorite_count=>0,
 :entities=>
  {:hashtags=>[{:text=>"WomGif", :indices=>[59, 66]}],
   :symbols=>[],
   :user_mentions=>
    [{:screen_name=>"womchile",
      :name=>"WOM",
      :id=>3251660537,
      :id_str=>"3251660537",
      :indices=>[23, 32]},
     {:screen_name=>"WomChileCL",
      :name=>"Wom Chile",
      :id=>3367496379,
      :id_str=>"3367496379",
      :indices=>[33, 44]}],
   :urls=>
    [{:url=>"https://t.co/x9nOwPosdP",
      :expanded_url=>
       "http://twitter.com/blackisra/status/659083467276361728/photo/1",
      :display_url=>"pic.twitter.com/x9nOwPosdP",
      :indices=>[67, 90]}]},
 :favorited=>false,
 :retweeted=>false,
 :possibly_sensitive=>false,
 :lang=>"es"}
{:metadata=>{:iso\u language\u code=>“es”,:result\u type=>“recent”},
:创建时间=>“2015年10月27日星期二19:05:18+0000”,
:id=>659083467276361728,
:id_str=>“659083467276361728”,
:text=>
“我的名字叫@womchile@WomChileCL va a tener 4g#womgfhttps://t.co/x9nOwPosdP",
:source=>
"",
:truncated=>false,
:在对状态的回复中,id=>nil,
:在对状态的回复中,id字符串=>nil,
:在对用户的回复中,id=>nil,
:在对用户的回复中\u id\u str=>nil,
:在对屏幕的回复中\u name=>nil,
:user=>
{:id=>119559070,
:id_str=>“119559070”,
:name=>“Israel muñoz arevalo”,
:screen_name=>“blackisra”,
:location=>“”,
:description=>“diseñador 3d、infografo、musico、futbolero…”,
:url=>“http://t.co/DI7Kq8jr6W",
:实体=>
{:url=>
{:URL=>
[{:url=>”http://t.co/DI7Kq8jr6W",
:扩展的\u url=>“http://israel.wide.cl",
:display_url=>“israel.wide.cl”,
:index=>[0,22]}]},
:description=>{:url=>[]},
:protected=>false,
:followers_count=>128,
:friends_count=>181,
:列出的\u计数=>0,
:创建时间=>“2010年3月4日星期四00:46:38+0000”,
:收藏夹数量=>91,
:utc_偏移量=>-10800,
:时区=>“大西洋时间(加拿大)”,
:geo_enabled=>true,
:verified=>false,
:status_count=>3598,
:lang=>“en”,
:contributors_enabled=>false,
:is_translator=>false,
:是否启用了翻译功能=>false,
:profile_background_color=>“131516”,
:个人资料\u背景\u图像\u url=>
"http://abs.twimg.com/images/themes/theme14/bg.gif",
:个人资料\u背景\u图像\u url\u https=>
"https://abs.twimg.com/images/themes/theme14/bg.gif",
:profile\u background\u tile=>true,
:profile\u image\u url=>
"http://pbs.twimg.com/profile_images/486269167490699264/qyA3H5gF_normal.jpeg",
:profile\u image\u url\u https=>
"https://pbs.twimg.com/profile_images/486269167490699264/qyA3H5gF_normal.jpeg",
:profile\u banner\u url=>
"https://pbs.twimg.com/profile_banners/119559070/1404771189",
:profile\u link\u color=>“00BBCC”,
:profile_边栏_border_color=>“000000”,
:profile_边栏_fill_color=>“000000”,
:profile\u text\u color=>“FFFFFF”,
:profile\u use\u background\u image=>true,
:已扩展\u配置文件=>false,
:default_profile=>false,
:default_profile_image=>false,
:following=>false,
:follow_request_sent=>false,
:notifications=>false},
:geo=>nil,
:坐标=>零,
:place=>nil,
:贡献者=>nil,
:is_quote_status=>false,
:retweet\u count=>0,
:favorite_count=>0,
:实体=>
{:hashtags=>[{:text=>“womgf”,:index=>[59,66]}],
:符号=>[],
:用户提到=>
[{:screen_name=>“womchile”,
:name=>“口碑”,
:id=>3251660537,
:id_str=>“3251660537”,
:index=>[23,32]},
{:screen_name=>“WomChileCL”,
:name=>“Wom智利”,
:id=>3367496379,
:id_str=>“3367496379”,
:index=>[33,44]}],
:URL=>
[{:url=>”https://t.co/x9nOwPosdP",
:扩展的url=>
"http://twitter.com/blackisra/status/659083467276361728/photo/1",
:display_url=>“pic.twitter.com/x9nOwPosdP”,
:index=>[67,90]}]},
:favorited=>false,
:retweeted=>false,
:可能_sensitive=>false,
:lang=>“es”}
如果我专门为此推文发出请求:

我得到了以下结果:

{:created_at=>"Tue Oct 27 19:05:18 +0000 2015",
 :id=>659083467276361728,
 :id_str=>"659083467276361728",
 :text=>
  "cuando me dijieron que @womchile @WomChileCL va a tener 4g #WomGif https://t.co/x9nOwPosdP",
 :source=>
  "<a href=\"http://twitter.com\" rel=\"nofollow\">Twitter Web Client</a>",
 :truncated=>false,
 :in_reply_to_status_id=>nil,
 :in_reply_to_status_id_str=>nil,
 :in_reply_to_user_id=>nil,
 :in_reply_to_user_id_str=>nil,
 :in_reply_to_screen_name=>nil,
 :user=>
  {:id=>119559070,
   :id_str=>"119559070",
   :name=>"Israel muñoz arevalo",
   :screen_name=>"blackisra",
   :location=>"",
   :description=>"diseñador 3d, infografo, musico, futbolero...",
   :url=>"http://t.co/DI7Kq8jr6W",
   :entities=>
    {:url=>
      {:urls=>
        [{:url=>"http://t.co/DI7Kq8jr6W",
          :expanded_url=>"http://israel.wide.cl",
          :display_url=>"israel.wide.cl",
          :indices=>[0, 22]}]},
     :description=>{:urls=>[]}},
   :protected=>false,
   :followers_count=>128,
   :friends_count=>181,
   :listed_count=>0,
   :created_at=>"Thu Mar 04 00:46:38 +0000 2010",
   :favourites_count=>91,
   :utc_offset=>-10800,
   :time_zone=>"Atlantic Time (Canada)",
   :geo_enabled=>true,
   :verified=>false,
   :statuses_count=>3598,
   :lang=>"en",
   :contributors_enabled=>false,
   :is_translator=>false,
   :is_translation_enabled=>false,
   :profile_background_color=>"131516",
   :profile_background_image_url=>
    "http://abs.twimg.com/images/themes/theme14/bg.gif",
   :profile_background_image_url_https=>
    "https://abs.twimg.com/images/themes/theme14/bg.gif",
   :profile_background_tile=>true,
   :profile_image_url=>
    "http://pbs.twimg.com/profile_images/486269167490699264/qyA3H5gF_normal.jpeg",
   :profile_image_url_https=>
    "https://pbs.twimg.com/profile_images/486269167490699264/qyA3H5gF_normal.jpeg",
   :profile_banner_url=>
    "https://pbs.twimg.com/profile_banners/119559070/1404771189",
   :profile_link_color=>"00BBCC",
   :profile_sidebar_border_color=>"000000",
   :profile_sidebar_fill_color=>"000000",
   :profile_text_color=>"FFFFFF",
   :profile_use_background_image=>true,
   :has_extended_profile=>false,
   :default_profile=>false,
   :default_profile_image=>false,
   :following=>nil,
   :follow_request_sent=>nil,
   :notifications=>nil},
 :geo=>nil,
 :coordinates=>nil,
 :place=>nil,
 :contributors=>nil,
 :is_quote_status=>false,
 :retweet_count=>0,
 :favorite_count=>0,
 :entities=>
  {:hashtags=>[{:text=>"WomGif", :indices=>[59, 66]}],
   :symbols=>[],
   :user_mentions=>
    [{:screen_name=>"womchile",
      :name=>"WOM",
      :id=>3251660537,
      :id_str=>"3251660537",
      :indices=>[23, 32]},
     {:screen_name=>"WomChileCL",
      :name=>"Wom Chile",
      :id=>3367496379,
      :id_str=>"3367496379",
      :indices=>[33, 44]}],
   :urls=>[],
   :media=>
    [{:id=>659083465053360128,
      :id_str=>"659083465053360128",
      :indices=>[67, 90],
      :media_url=>"http://pbs.twimg.com/tweet_video_thumb/CSWI62PW0AAoQnR.png",
      :media_url_https=>
       "https://pbs.twimg.com/tweet_video_thumb/CSWI62PW0AAoQnR.png",
      :url=>"https://t.co/x9nOwPosdP",
      :display_url=>"pic.twitter.com/x9nOwPosdP",
      :expanded_url=>
       "http://twitter.com/blackisra/status/659083467276361728/photo/1",
      :type=>"photo",
      :sizes=>
       {:medium=>{:w=>244, :h=>200, :resize=>"fit"},
        :thumb=>{:w=>150, :h=>150, :resize=>"crop"},
        :small=>{:w=>244, :h=>200, :resize=>"fit"},
        :large=>{:w=>244, :h=>200, :resize=>"fit"}}}]},
 :extended_entities=>
  {:media=>
    [{:id=>659083465053360128,
      :id_str=>"659083465053360128",
      :indices=>[67, 90],
      :media_url=>"http://pbs.twimg.com/tweet_video_thumb/CSWI62PW0AAoQnR.png",
      :media_url_https=>
       "https://pbs.twimg.com/tweet_video_thumb/CSWI62PW0AAoQnR.png",
      :url=>"https://t.co/x9nOwPosdP",
      :display_url=>"pic.twitter.com/x9nOwPosdP",
      :expanded_url=>
       "http://twitter.com/blackisra/status/659083467276361728/photo/1",
      :type=>"animated_gif",
      :sizes=>
       {:medium=>{:w=>244, :h=>200, :resize=>"fit"},
        :thumb=>{:w=>150, :h=>150, :resize=>"crop"},
        :small=>{:w=>244, :h=>200, :resize=>"fit"},
        :large=>{:w=>244, :h=>200, :resize=>"fit"}},
      :video_info=>
       {:aspect_ratio=>[61, 50],
        :variants=>
         [{:bitrate=>0,
           :content_type=>"video/mp4",
           :url=>"https://pbs.twimg.com/tweet_video/CSWI62PW0AAoQnR.mp4"}]}}]},
 :favorited=>false,
 :retweeted=>false,
 :possibly_sensitive=>false,
 :possibly_sensitive_appealable=>false,
 :lang=>"es"}
{:created_at=>“2015年10月27日星期二19:05:18+0000”,
:id=>659083467276361728,
:id_str=>“659083467276361728”,
:text=>
“我的名字叫@womchile@WomChileCL va a tener 4g#womgfhttps://t.co/x9nOwPosdP",
:source=>
"",
:truncated=>false,
:在对状态的回复中,id=>nil,
:在对状态的回复中,id字符串=>nil,
:在对用户的回复中,id=>nil,
:在对用户的回复中\u id\u str=>nil,
:在对屏幕的回复中\u name=>nil,
:user=>
{:id=>119559070,
:id_str=>“119559070”,
:name=>“Israel muñoz arevalo”,
:screen_name=>“blackisra”,
:location=>“”,
:description=>“diseñador 3d、infografo、musico、futbolero…”,
:url=>“http://t.co/DI7Kq8jr6W",
:实体=>
{:url=>
{:URL=>
[{:url=>”http://t.co/DI7Kq8jr6W",
:扩展的\u url=>“http://israel.wide.cl",
:display_url=>“israel.wide.cl”,
:index=>[0,22]}]},
:description=>{:url=>[]},
:protected=>false,
:followers_count=>128,
:friends_count=>181,
:列出的\u计数=>0,
:创建时间=>“2010年3月4日星期四00:46:38+0000”,
:收藏夹数量=>91,
:utc_偏移量=>-10800,
:时区=>“大西洋时间(加拿大)”,
:geo_enabled=>true,
:verified=>false,
:status_count=>3598,
:lang=>“en”,
:contributors_enabled=>false,
:is_translator=>false,
:是否启用了翻译功能=>false,
:profile_background_color=>“131516”,
:个人资料\u背景\u图像\u url=>
"http://abs.twimg.com/images/themes/theme14/bg.gif",
:个人资料\u背景\u图像\u url\u https=>
"https://abs.twimg.com/images/themes/theme14/bg.gif",
:profile\u background\u tile=>true,
:profile\u image\u url=>
"http://pbs.twimg.com/profile_images/486269167490699264/qyA3H5gF_normal.jpeg",
:profile\u image\u url\u https=>
"https://pbs.twimg.com/profile_images/486269167490699264/qyA3H5gF_normal.jpeg",
:profile\u banner\u url=>
"https://pbs.twimg.com/profile_banners/119559070/1404771189",
:profile\u link\u color=>“00BBCC”,
:profile_边栏_border_color=>“000000”,
:profile_边栏_fill_color=>“000000”,
:profile\u text\u color=>“FFFFFF”,
:profile\u use\u background\u image=>true,
:已扩展\u配置文件=>false,
:default_profile=>false,
:default_profile_image=>false,
:following=>nil,
:follow_request_sent=>nil,
:notifications=>nil},
:geo=>nil,
:坐标=>零,
:place=>nil,
:贡献者=>nil,
:is_quote_status=>false,
:retweet\u count=>0,
:favorite_count=>0,
:实体=>
{:hashtags=>[{:text=>“womgf”,:index=>[59,66]}],
:符号=>[],
:用户提到=>
[{:screen_name=>“womchile”,
:name=>“口碑”,
:id=>3251660537,
:id_str=>“3251660537”,
:index=>[23,32]},