ãåã¯ä»ã¾ã§ã«Tumblrã«ãã¹ãããåçã®æ°ãè¦ãã¦ããã®ã
APIã§éå»ã®ãã¹ãæ°ãã¿ã¤ãå¥ã«åãããããã®ããªã¼ã£ã¦æã£ããã©ï¼ã¡ãã£ã¨æ¢ãã¦è¦ã¤ãããªãã£ãï¼
tumblrã®ãã¹ãå 訳ãGoogle Chart APIã§è¡¨ç¤ºããããã¯ãã¼ã¯ã¬ãã - drillhanz ã®å®è¡ããããã¯ãã¼ã¯ã¬ãããï¼æ±ãã¦ãããã®ã«è¿ãï¼/archive ã®ãã¼ã¸ã§è¦ç´ æ°ãæ°ããã°ããããã§ããï¼
ã§ããã£ãã®ããã¯ãã¼ã¯ã¬ãããããã¡ã£ã½ãï¼Tumblrã®HTMLæ§é ãå¤ãã£ãã®ããªï¼ä»ã®HTMLã«åããã¦æ¸ãã¦ã¿ãï¼
/archive ãã¼ã¸ãã JavaScript ã§ã¿ã¤ãå¥ã®ãã¹ãæ°ãåå¾ãã
ã¾ã㯠Firebug 㧠$x ã使ã£ã¡ããï¼
- all
$x('//div[@class="user_hover"]').length
> 2187
- photo
$x('//span[@class="caption"]').length
> 1583
- quote
$x('//span[@class="quote"]').length
> 557
- video
$x('//img[@src="/images/video_icon.png"]').length
> 25
追è¨
è²ã
試ãã¦ã¿ã¦æ°ä»ãããã©ï¼ readã®APIãè¿ãXML(JSON)ã«ãã¹ãæ°ã®æ
å ±ãå
¥ã£ã¦ãã¾ããï¼ ãã£ã¡ãè¦ãæ¹ãããï¼
追ã è¨
TumblrPostChartã£ã¦ã®ãä½ã£ã¦ã¿ãï¼ã¡ãªã¿ã«ï¼æ¬å½ã¯ãã¹ãã®å 訳ã使ã£ã¦å ¨ç¶éããã¨ããããã¨ãã¦ãããã ãã©ï¼æ°ä»ãããã°ã©ãåãã¦ããï¼ï¼