« Action Streams プラグイン | Main | Whiteboard »

23 February 2008

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 は行きます。よろしくお願いします。

TrackBack

TrackBack URL for this entry:
http://bb.lekumo.jp/t/trackback/517129/31023137

Listed below are links to weblogs that reference microformats vCard and Web::Scraper:

Comments

I like it whenever people come together and share opinions. Great site, stick with it!

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!

Post a comment

Access Ranking

Powered by Six Apart
Sponsored links