Twitterã§ãHyperJoyã§æã£ãæ²ãTwitterã«Postã§ãããããã®ã«ãã£ã¦è¨ã£ã¦ã人ãããã®ã§ãã¡ããã©女医ハックã®äºå®ããã£ãã®ããããRubyã§ã¡ãã£ã¨ãã£ã¦ã¿ãã
HyperJoy ã®æä¸ä½æ©ç¨® Wave ã«ã¯ããã¹ãã¨ãããµã¼ãã¹ããããWebããæã£ãæ²ã®å±¥æ´ã確èªããããèªåç¨ææ¬ãä½ã£ã¦ããã¦ãªã¢ã³ã³ã«è¡¨ç¤ºãã¦ãã®ã¾ã¾æ²äºç´ã§ãããããªä»çµã¿ãããã¾ãã
ä»åã¯ãã®ããã¹ãã®å±¥æ´æ©è½ããä¸çªä¸ã®æ²ãã²ã£ãã¬ãã¦Twitterã«Postãã¾ãã
äºåã«ä»¥ä¸ã®gemå ¥ãã¦ããå¿ è¦ããã§ãã
# gem install mechanize # gem install hpricot # gem install twitter4r
ãã®Rubyã¹ã¯ãªãããæã£ã¦ãã°ããããã¿ã¤ãã³ã°ã§å©ãããããããæãã®ã·ã§ã«ã¹ã¯ãªããã§ä¸å®æéããã«åããã¾ãã*1
#!/bin/bash cd /Users/ebina/Scripts/ while [ 1 ]; do echo "check start" ruby ./utasuki_history.rb echo "check end" sleep 300 done
ãã ãããã¹ãã®å±¥æ´ãã¼ã¸ã®æ´æ°ã¯ãªã¢ã«ã¿ã¤ã ãããªããä½åãã«ï¼åã®ãããã§åæ ãããã¿ãããä¸åº¦ã®ãããã§å¤§éã«å±¥æ´ãã¢ããããã¦ãã¾ããããã«ã©åãã§ã¯ãªãããã3ã4人ãããã§é çªã«æã£ã¦ãç°å¢ãªãååè¡ãããã
ã¾ãæ°æéã§ã§ã£ã¡ãããã®ã§ãã£ã¨ããå®è£ ã¯ã§ãããã§ããã©ãã