Hatena::Grouprubyist

たばさの RSSフィード

02/23(火) 2010

twitter検索 はやりもの

| 22:35 | twitter検索 はやりもの - たばさの を含むブックマーク はてなブックマーク - twitter検索 はやりもの - たばさの

参考 >http://uinyan.com/get_twitter_followers/

「ギラギラした連中」とやらをなんとなく検索したくなったので。

*1

#!ruby
#abogado-twitter-search.rb
require 'kconv'
require 'open-uri'

interval=2

key="Amazon アボガド ジャニーズ 株 FX 為替 デイトレード"
url="http://search.twitter.com/search?q=#{key}"
url=URI.escape(url.toutf8)

def get url
  open(url){|f| $d=f.read}
  res=$d.scan(/http:\/\/twitter\.com\/([^\/"\?]+)/)
  p res.uniq if $DEBUG
  res
end

ans=[]
res=get url
ans<<res.uniq
1000.times{|i|
  res=get url+"&page=#{i+2}"
  break if res==[]
  ans<<res.uniq
  sleep interval
}
ans.flatten!.uniq!.sort!
puts ans.size
p ans
#open("test.txt","w"){|f| f.puts ans}
 > ruby abogado-twitter-search.rb
237
["0704teru", "2Ukuro_nyanU4", "3zaru", "5skip5", "AKIRA_954", "Avocado_j", "Azur
eStone", "BBB3298", "Baginaaaaaaa", "ChurchOfSearch", "DYE26", "DenP_AruPka", "D
ursan", "Dyosonavojophie", "Jupiterrrrr", "KW_cat", "KazumaNishihata", "Mitsuor"
, "NICONICO_BAR", "NotInEET", "OKWave", "Phize", "Rinngo_", "Sato999satoe", "Sho
ppinJP", "Torii_Hayakawa", "Tyne", "YUKI14", "Yeshi_main", "_amasho", "_isam_",
"_kaji", "_waco", "a_vagabond_life", "aboutGoogleIME", "achory", "affiliate_diar
y", "affiliatemost", "akhk", "akosiesta", "alohamahalo3", "amoruhulasu", "anemo"
, "aniki02", "aont50", "aqTheme", "arbeitescape", "atmarkbien", "awagatik", "bao
babunohana", "baobabunohanan", "basq1", "be2shun", "bekibekiarch", "berero", "be
tahikaru", "blue_jay0707", "bob0022", "bot_collector", "boteste", "chigwang", "c
ockatiel_cage", "daisuk_com", "dassen", "designkeys", "diettter", "dorosuzu", "d
reamiracle", "endo0929hiro", "enokizu", "evergreen90", "ext00100", "financial__j
ob", "flatearth_blog", "foloinfo", "foxlived", "fukamikengo", "fuki1234", "fukum
en_chan", "fuumie", "genthalf", "ggg9", "goodmad", "gunt100", "habu_kun_", "haru
haru_te", "haruka_suzumiya", "hateboter", "hikifes", "hiro_shi", "hugeslim", "hu
tari", "iamromrom", "ikeyu", "imodegwin", "iorimid", "jrgamo", "jun_sugihara", "
junya108", "kabubotter", "kadorin_", "kamekiti", "karuran", "kato_reizuna", "kat
sukity", "kawasebot", "kazurock", "kazuya_i", "kcapigus", "kenzyy_jp", "kirinet"
, "kissy_tw", "komeou", "kondone", "koro_shiba", "kumax1115", "kyubuns", "lab_lo
ve", "licht", "life96", "lightmenthol", "little__five", "llcheesell", "loplass_"
, "m_goda", "ma_san", "macoyuki", "makotoworld", "masayoshi00", "masia02", "masu
mikawasaki", "matsuge", "mayamiki_bot", "mayopon555", "menvett", "mikesekine", "
mituki123", "miz_cygnus", "moldau_n", "motoking001", "moyashimegane", "nakagawa2
17", "namesama", "nanakoi", "next_standard", "nishinii", "noaya12", "norinaka",
"nowinspiring", "nuc0", "nume_taro", "oka_chiba", "omegayuji", "otasukenet", "pa
ndeiro245", "pedothemus", "pepotan", "phji", "pideno", "planse", "playnote", "po
ntamojya", "pop_pop_pop", "rhosoi", "rilpop", "rx71218", "ryo_imamura", "ryotaka
hashi001", "s0n19u3", "sakistyle", "sato_exe", "sawada1", "sdkfz142", "sdrg00",
"seo_troll", "sesisva", "setzer88", "shiga1909", "shimoji3", "shineon964", "shn"
, "shohei0720", "shumai", "shuukaiokure", "siki2", "simple31", "sonicdrum", "sov
ako", "spamproof", "star_kansai", "surfing_jp", "sushidankon", "suzuvie", "syama
ta", "taiheiraku", "taka_mi", "take_channel", "takeori", "takeupi", "takujiabe",
 "takuroy", "tam_ratch", "tarocorp", "tealog", "tenull2", "test0223", "tetora7",
 "tkosuga", "tnkmr0801", "todesking", "togawa1110", "tokyojoe_2008", "toriaezu",
 "toshi_wedge", "touhucafe", "tsukebo", "uebo", "ui_nyan", "ui_nyan_", "ui_nyan_
Amazon", "umaibomentaiaji", "unko_love", "ura_Q", "uriuriyo", "waite4spring", "w
akaski", "wolfmanbrs", "xRRINGx", "xxxxSHIONxxxx", "y0u_", "yamitake", "yasuchik
a", "ychhh", "yoshide", "yumeiP", "yumomopower", "yutasoc"]
 >

*1:違った、ギラギラした連中に寄ってこられたい人々だった

トラックバック - http://rubyist.g.hatena.ne.jp/hatecha/20100223
カレンダー
<< 2010/02 >>
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28
archive Error : RSSが取得できませんでした。