HTML::Elementãè¿ãããã«ãã
前々回のエントリã§ç´¹ä»ããéè¦é¨åãæ½åºããperlã¢ã¸ã¥ã¼ã«ãHTML::Featureãã§ããããã®å¾ã¸ã¯ã¸ã¯ã¨åé¿ããã£ã¦ãæå¤ãªãã¨ã«id:fubaãããããHTML::Elementã§ãã¼ã¿ãè¿ãã¦ãããã¨ãããªããã¨ãããªã¯ã¨ã¹ãã¾ã§ããã ãã»ã©ã«ã
ã§ããããä»é±æ«ã«æéãã¨ããã®ã§ãé
ãã°ããªãã対å¿ãã¦ã¿ã¾ããã
http://search.cpan.org/~miki/HTML-Feature-2.0.3/
精度é¢ã§ãããããªãããã¥ã¼ã³ã¢ãããæ½ãã¦ãã¾ããå¤åå°ãã ã精度ãé«ããªã£ã¦ããã¯ãã
éè¦é¨åã®HTML::Elementãåå¾ããæ¹æ³ã§ããããããªæãã§OKã§ãã
use HTML::Feature; my $feature = HTML::Feature->new; my $result = $feature->parse("http://hogehoge.com"); print $result->element->as_HTML;
$result->elementã§HTML::Elementãªãã¸ã§ã¯ããè¿ã£ã¦ããã®ã§ããã¨ã¯é©å½ã«ã©ããã
ä¸èº«ã®ãã¼ã¿ã¯UTF-8ã«decodeãããã¾ã¾ãªã®ã§ãå®éã«ä½¿ãã¨ãã¯å¥½ããªããã«encodeãã¦ãã ããã
ã¡ãªã¿ã«fubaãããã¤ãã£ã¦ããããTsubuanLikeエンジンãã¯ãå®éã®TSUBUANã¯è¡¨ã«åºã¦ããªãã¹ããããçµã¿è¾¼ãã§ããã¿ãããªã®ã§ãããããããååã«åé¡ããããããã¨ãããã¨ãªã®ã§ãã¡ãã£ã¨æ©ãã ã®ã§ãããä»åã®ãã®ã«ã¯å«ãã¾ããã§ããããããããã
ãã¨ãããæ°æ¥ã§HTML::Featureããæ´¾çãããããããªã¢ãããã£ã¦å人çã«ããªãé¢ç½ãã£ãã®ã§ãã¡ãã£ã¨ã¾ã¨ãã¦ããã¾ãã
- HTML::Feature::Engine::TsubuanLike
- fubaããã«ããã¨ã³ã¸ã³ã®å®è£ ãTsubuanãåèã«ãã¦ããããã§ãã
- karaoke_html_feature.user.js
- gotinããã«ããjsã§ã®å®è£ ãã«ã©ãªã±ã®ããããã¿ããã«éè¦é¨åãè²å¡ãããã¦ããã¾ãã楽ããã
- LDR x HTML::Feature in client – Userscripts.org
- koyachiããã«ãããjså®è£ ããHTML::Featureã使ã£ã¦ldrä¸ã§ã¨ã³ããªä¸»è¦é¨åãè¦ãgreasemonkeyã¹ã¯ãªãããã ããã§ããããããªãã
- HTML::FeaturedImage
ãªãã ãã¹ã´ãã§ãããã¾ããjavascriptã«ç§»æ¤ããããéè¦ãªç»åæ½åºãã«ã¾ã§è©±ãçºå±ãã¦ããã¨ã¯æãã¾ããã§ããããww
éè¦é¨åæ½åºï¼æ¬ææ½åºï¼ã£ã¦æ¥çå ã§ã¯çµæ§å¿ è¦ã¨ããã¦ãããã¼ãã ã£ããã§ããããªãã¦æ¹ãã¦æã£ãããã¾ããã