microformats vCard and Web::Scraper
Perl microformat parsing というスレッドで「microformats の vCard などを Perl でスクレイピングする」という話題がありましたので、私が Web::Scraper を紹介しましたところ、Web::Scraper の作者の miyagawa さんよりベターな使い方のレスポンスをいただきました。ありがとうございました。
my $scraper = scraper { process ".vcard", "vcards[]" => scraper { process ".email", email => '@href'; process ".fn", fullname => "TEXT"; process ".tel", tel => "TEXT"; process ".title", title => "TEXT"; };};my $result = $scraper->scrape($uri);
scrape をネストさせるとは恐れ入りました。。。
この件について builder tech day - open API & beyond で Lightning talk してもいいかなと思いました。microformats と Web::Scraper はかなり親和性が高いのでもっと広まるといいと思います。まだ募集してるかな?
LTに出る出ないに関わらず、builder tech day - open API & beyond は行きます。よろしくお願いします。
I like it whenever people come together and share opinions. Great site, stick with it!
Posted by: parajumpers light long bear | 03 December 2013 at 06:01 AM
Hey would you mind stating which blog platform you're working with? I'm going to start my own blog soon but I'm having a difficult time making a decision between BlogEngine/Wordpress/B2evolution and Drupal. The reason I ask is because your design seems different then most blogs and I'm looking for something unique. P.S Sorry for getting off-topic but I had to ask!
Posted by: barbour quilted jacket | 14 December 2013 at 05:15 AM