|
CLI access to FEAR::APIDumper information from content fear -d 'image' google.com # images, links, forms
--dump 'image'
Dumper ALL information from content fear -a google.com -d 'all'
--dump-all
Save content to fear.output fear -o google.com
--download
Load content from filesystemfear -f 'some.html.file' Xpath content fear -p '/html/body/*' google.com
--xpath
Print out content fear -s google.com
--source
Specify extraction methodfear -m Regexp::GlobalBind Specify templatefear -t '<a href="[% link %]">[% text %]</a>' Choose dumping module (YAML and Data::Dumper)fear -r YAML Verbose outputfear -v Input perl code fear -e "fetch('google.com')"
--execute
Force content type fear -y 'text/html'
--content-type
MIX TOGETHERfear google.com -m Regexp::GlobalBind -p '/html/head' -t 'qr"<meta (?#<fields>.+?) />"' -r YAML Fetch google's homepage Set extraction method to Regexp::GlobalBind Use XPATH to select /html/head subtree Apply template Dump results using YAML COPYRIGHTCopyright (C) 2006 by Yung-chung Lin (a.k.a. xern) <xern@cpan.org> This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself
|