Twitter 获取流式搜索文本

Twitter 获取流式搜索文本,twitter,Twitter,我正在ruby平台上使用twitter流式API。 在twitter gem()的帮助下,我能够找到流文本 在查看推文后,我能够获得推文 :text=>“升华文本:一个编辑器来管理所有内容?| Linux日志--” 但我需要准确的搜索文本,输入的内容类似于:search=>“linux” 在检查tweet时,我得到的输出是 **#<Twitter::Tweet:0x007fb541799688 @attrs={:created_at=>"Tue Oct 22 01:05:09 +00

我正在ruby平台上使用twitter流式API。 在twitter gem()的帮助下,我能够找到流文本

在查看推文后,我能够获得推文

:text=>“升华文本:一个编辑器来管理所有内容?| Linux日志--”

但我需要准确的搜索文本,输入的内容类似于:search=>“linux”

在检查tweet时,我得到的输出是

**#<Twitter::Tweet:0x007fb541799688 @attrs={:created_at=>"Tue Oct 22 01:05:09 +0000 2013", :id=>392456556538634240, :id_str=>"392456556538634240", :text=>"#linux #bluetooth  [PATCH v3 09/11] android: Add IPC helper for convenient error sending http://t.co/WTdtDxJ1AH", :source=>"<a href=\"http://dlvr.it\" rel=\"nofollow\">dlvr.it</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=>134530863, :id_str=>"134530863", :name=>"Linux Networking", :screen_name=>"linuxnet", :location=>"", :url=>"http://www.spinics.net/lists/linux-net/", :description=>"Linux Networking Discussion Archive", :protected=>false, :followers_count=>1706, :friends_count=>415, :listed_count=>73, :created_at=>"Sun Apr 18 17:56:03 +0000 2010", :favourites_count=>0, :utc_offset=>nil, :time_zone=>nil, :geo_enabled=>false, :verified=>false, :statuses_count=>167802, :lang=>"en", :contributors_enabled=>false, :is_translator=>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://a0.twimg.com/profile_images/833409212/network-cable_normal.png", :profile_image_url_https=>"https://si0.twimg.com/profile_images/833409212/network-cable_normal.png", :profile_link_color=>"009999", :profile_sidebar_border_color=>"EEEEEE", :profile_sidebar_fill_color=>"EFEFEF", :profile_text_color=>"333333", :profile_use_background_image=>true, :default_profile=>false, :default_profile_image=>false, :following=>nil, :follow_request_sent=>nil, :notifications=>nil}, :geo=>nil, :coordinates=>nil, :place=>nil, :contributors=>nil, :retweet_count=>0, :favorite_count=>0, :entities=>{:hashtags=>[{:text=>"linux", :indices=>[0, 6]}, {:text=>"bluetooth", :indices=>[7, 17]}], :symbols=>[], :urls=>[{:url=>"http://t.co/WTdtDxJ1AH", :expanded_url=>"http://dlvr.it/49zHZy", :display_url=>"dlvr.it/49zHZy", :indices=>[89, 111]}], :user_mentions=>[]}, :favorited=>false, :retweeted=>false, :possibly_sensitive=>false, :filter_level=>"medium", :lang=>"en"}>**
**“2013年10月22日星期二01:05:09+0000”、:id=>392456556538634240、:id_str=>“392456556538634240”、:text=>“#linux#蓝牙[PATCH v3 09/11]android:添加IPC帮助程序以方便发送错误http://t.co/WTdtDxJ1AH“,:source=>”,:truncated=>false,:in_reply_to_status_id=>nil,:in_reply_to_status_id_str=>nil,:in_reply_to_user_id=>nil,:在回答用户时,用户名=>nil,:用户=>{:id=>134530863,:id\u str=>“134530863”,:name=>“Linux网络”,:screen\u name=>“linuxnet”,:location=>,:url=>“http://www.spinics.net/lists/linux-net/,:description=>“Linux网络讨论存档”,:protected=>false,:followers\u count=>1706,:friends\u count=>415,:listed\u count=>73,:created\u at=>Sun Apr 18 17:56:03+0000 2010,:favorities\u count=>0,:utc\u offset=>nil,:times\u zone=>nil,:geo\u enabled=>false,:status\u count=>167802,:lang=>en,:contributors\u enabled=>false,:is\u translator=>false,:profile\u背景色=>“131516”,:配置文件\背景\图像\ 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://a0.twimg.com/profile_images/833409212/network-cable_normal.png“,:配置文件\u图像\u url\u https=>”https://si0.twimg.com/profile_images/833409212/network-cable_normal.png“,:profile\u link\u color=>”009999“,:profile\u sidebar\u border\u color=>”EEEEEE“,:profile\u sidebar\u fill\u color=>”efefefefef“,:profile\u text\u color=>”333333“,:profile\u use\u background\u image=>true,:default\u profile=>false,:following=>nil,:following\u request\u sent=>nil,:notifications=>nil},:geo=>nil,:coordinates=>nil,:place=>nil,:contributors=>nil,:retweet\u count=>0,:favorities=>0,:favorities=>hashtags=>0,{,:索引=>[7,17]}],:符号=>[],:url=>[{:url=>”http://t.co/WTdtDxJ1AH“,:扩展的url=>”http://dlvr.it/49zHZy“,:display_url=>”dlvr.it/49zHZy“,:index=>[89111]}],:user_indications=>[]},:favorited=>false,:retweeted=>false,:可能敏感=>false,:filter_level=>“medium”,:lang=>“en”}>**

最终通过
{tweet['hashtags']}