CLI access to FEAR::API
Dumper 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 filesystem
fear -f 'some.html.file'
Xpath content
fear -p '/html/body/*' google.com
--xpath
Print out content
fear -s google.com
--source
Specify extraction method
fear -m Regexp::GlobalBind
Specify template
fear -t '<a href="[% link %]">[% text %]</a>'
Choose dumping module (YAML and Data::Dumper)
fear -r YAML
Verbose output
fear -v
Input perl code
fear -e "fetch('google.com')"
--execute
Force content type
fear -y 'text/html'
--content-type
MIX TOGETHER
fear 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
COPYRIGHT
Copyright (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