Plack::Middleware::Woothee - Set woothee information based on User-Agent
This document describes Plack::Middleware::Woothee version 0.05.
use Plack::Middleware::Woothee; use Plack::Builder; my $app = sub { my $env = shift; # automatically assigned by Plack::Middleware::Woothee my $woothee = $env->{'psgix.woothee'}; ... }; builder { enable 'Woothee'; $app; };
This middleware get woothee information based on User-Agent and assign this to `$env->{'psgix.woothee'}`.
You can use this information in your application.
Switch parser from Woothee(default) to something. A module must have a parse methods, and should have an is_crawler method.
parse
is_crawler
Perl 5.8.1 or later.
All complex software has bugs lurking in it, and this module is no exception. If you find a bug please either email me, or add the bug to cpan-RT.
perl Woothee
Masayuki Matsuki <y.songmu@gmail.com>
Copyright (c) 2013, Masayuki Matsuki. All rights reserved.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Plack::Middleware::Woothee, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Plack::Middleware::Woothee
CPAN shell
perl -MCPAN -e shell install Plack::Middleware::Woothee
For more information on module installation, please visit the detailed CPAN module installation guide.