饶琛琳 > NG-0.001 > HTTP::DOM

Download:
NG/NG-0.001.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Source   Latest Release: NG-0.001_05

DESCRIPTION A mini implement of Web::Query, but all method return Array object, no matter wantarray or no. I only want something work with web_get, so modify-relate methods all deleted. ^

find my $dom = HTTP::DOM->new($content); print $dom->find('#m')->text->get(0);

html

text my $dom = HTTP::DOM->new($content); print $dom->text->get(0);

attr my $url = 'http://www.baidu.com/'; my $hc = HTTP::Client->new; my $content = $hc->web_get($url); my $dom = HTTP::DOM->new($content); print $dom->find('meta')->attr('content')->get(0);

syntax highlighting: