NicoHourlyRank
http://twitter.com/NicoHourlyRank
ããã¯ä½ï¼
twitterBotã®ç¿ä½ã«ããã³ãã³åç»ã®æ¯æã©ã³ãã³ã°ãã¤ã¶ããBotãä½ã£ã¦ã¿ã¾ãã
æ¯æ15åãããã«æ´æ°ãã¾ã
çµç·¯
æ´æ°é »åº¦ãé«ããã©ãæ¯åãã§ãã¯ããããRSSåã£ããããç¨ã§ã¯ãªãã¢ãã«å¯¾ãã¦ãtwitterBotã¯æå¹ãã¨æã£ã¦å¶ä½
æè¡ã¡ã¢
scRUBYt!
rubyã§ã¹ã¯ã¬ã¤ãã³ã°ããã©ã¤ãã©ãª
- 詳細ã¯ãã¡ããåç §âscRUBYt!をさくらのサーバに導入しようとしたら死ぬほど面倒くさい目に合ったでござるの巻
rubyã§twitterã«ã¢ã¯ã»ã¹ããã©ã¤ãã©ãª
å°å
¥ã«å°ã
è¦æ¦
ã¾ããhttpartyãç¡ãã¨æããã
require 'twitter' LoadError: no such file to load -- httparty from /home/kasei-san/lib/rubygems/custom_require.rb:32:in `gem_original_require' from /home/kasei-san/lib/rubygems/custom_require.rb:32:in `require' from ./../lib/twitter/search.rb:2 from /home/kasei-san/lib/rubygems/custom_require.rb:27:in `gem_original_require' from /home/kasei-san/lib/rubygems/custom_require.rb:27:in `require' from ./../lib/twitter.rb:14 from /home/kasei-san/lib/rubygems/custom_require.rb:27:in `gem_original_require' from /home/kasei-san/lib/rubygems/custom_require.rb:27:in `require' from ./twitter.rb:2 from /home/kasei-san/lib/rubygems/custom_require.rb:27:in `gem_original_require' from /home/kasei-san/lib/rubygems/custom_require.rb:27:in `require' from (irb):4
httpartyãå°å
¥
%gem install httparty
ä»åº¦ã¯ãechoeãç¡ãã¨æããã
irb(main):002:0> require 'httparty' Gem::LoadError: Could not find RubyGem echoe (>= 0) from /home/kasei-san/lib/rubygems.rb:578:in `report_activate_error' from /home/kasei-san/lib/rubygems.rb:134:in `activate' from /home/kasei-san/lib/rubygems.rb:158:in `activate' from /home/kasei-san/lib/rubygems.rb:157:in `each' from /home/kasei-san/lib/rubygems.rb:157:in `activate' from /home/kasei-san/lib/rubygems/custom_require.rb:31:in `require' from (irb):2
echoeãå°å
¥
%gem install echoe
ä»åº¦ã¯ã.twitterãç¡ãã¨æããã
irb(main):004:0> require 'twitter' Errno::ENOENT: No such file or directory - /home/kasei-san/.twitter from ./twitter.rb:3:in `initialize' from ./twitter.rb:3:in `open' from ./twitter.rb:3 from /home/kasei-san/lib/rubygems/custom_require.rb:27:in `gem_original_require' from /home/kasei-san/lib/rubygems/custom_require.rb:27:in `require' from (irb):4 from /home/kasei-san/lib/rubygems/exceptions.rb:81
åãªããã¡ã¤ã«ã£ã½ãã®ã§ã空ã®ããã¹ããã¡ã¤ã« .twitter ãçæ
ãã£ã¨ããæå
irb(main):002:0> require 'twitter' => true
ã¡ãªã¿ã«POSTã¯ãããªæã
twit = Twitter::Base.new("ã¡ã¼ã«ã¢ãã¬ã¹", "ãã¹ã¯ã¼ã") twit.update('ãã¹ããã¹ãã¼')
ãã®ä»
ãã£ãããªã®ã§ã100ä½ã¾ã§ã®æ¯æã©ã³ãã³ã°ã®ãã¼ã¿ãä¿åãã¦ãã¾ã
ä½ãæªããã¨ã«ä½¿ããªããè¨ç»ä¸
2009/02/07 追è¨
ãã³ãã³åç»ã®ã¬ã¤ã¢ã¦ãå¤æ´ã§ãæ£ããã¹ã¯ã¬ã¤ãã§ãã¦ãªãã£ãä¸å
·åãä¿®æ£ãã¾ãã
ã©ããã02/16ã®16æé ã«ã¬ã¤ã¢ã¦ããå¤æ´ããã模æ§
2009/02/07 追è¨2
0æã9æã®éã«ãæå»è¡¨ç¤ºããããããªãä¸å
·åãä¿®æ£ãã¾ãã
2009/02/09 追è¨
ã¾ãããã¬ã¤ã¢ã¦ãå¤æ´å¯¾å¿
2009/02/11 追è¨
urlãç¸å¯¾Pathã«ãªã£ã¦ããä¸å ·å対å¿