scraperにscraperを渡せるようにした
Web::Scraper の"Twitter Friends (complex)"ができるようになった。
s = scraper( process('span.vcard', people=scraper( process('a', link='@href', name='@title'), process('img', thumb='@src') ) ) )
下のパッチ加えただけ。
+ elif hasattr(val, 'scrape'): + stash[key] = val.scrape(url)
本家のほうは他にHash referenceを渡したりできるみたい。
resultも手つかず。