タグ

関連タグで絞り込む (1)

タグの絞り込みを解除

scrapiに関するasitakiのブックマーク (2)

  • scrAPI Cheat Sheet

    Selectors *any element Ean element of type E E.warningan E element whose class is "warning" (the document language specifies how class is determined). E#myidan E element with ID equal to "myid". E[foo]an E element with a "foo" attribute E[foo="bar"]an E element whose "foo" attribute value is exactly equal to "bar" E[foo~="bar"]an E element whose "foo" attribute value is a list of space-separated v

  • String#scrape - ヽ( ・∀・)ノくまくまー(2007-01-15)

    ● String#scrape どうせお前らはあれだろ、scrAPI は強力だし、これこそ自分がまさに待望してた道具、使いこなすぜ!と意気込んでるんだけど、どれだけ決意してもあの複雑な引数に毎回挫折しちゃって、挫折つーかちょっと使いたいだけなのにパーザ(Scrape)用のクラスを定義するのが面倒なんだよね、みたいな言い訳を毎回自分にしつつ、結局使いこなせてない脳内ゆとり世代のお前らなんだけど、まぁ実際引数に無駄に色んな機能を詰め込み過ぎてる感は否めないし、というかextractorのsrcとdstはどう見ても直感的に逆だろ、grepみたいに使わせろよ使えない1だな、みたいな愚痴をこぼしてたら、むしろCSS3なgrepとして使えるだけでいい事に気付いて、You、Stringクラスに入れちゃいなYO! String#scrape の定義 require 'scrapi' class Strin

  • 1