App::Wubot::Reactor::WebFetch - fetch data from a URL
version 0.3.7
- name: fetch 'body' field from the 'link' field plugin: WebFetch config: field: body url_field: link
A reactor plugin that can fetch data from a URL and store the retrieved content on a field on the message.
This plugin is great for fetching the complete article for the body of an RSS feed when the feed only provides a summary of the article.
The 'url' may be defined in the config, or else a 'url_field' may be configured so that the link can be pulled from the message. The retrieved content is stored on the message in the configured 'field'.
If an error occurs, the error will be logged at 'error' level.
The retrieved content will be utf8 decoded.
The standard reactor plugin react() method.
To install App::Wubot, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::Wubot
CPAN shell
perl -MCPAN -e shell install App::Wubot
For more information on module installation, please visit the detailed CPAN module installation guide.