The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

WWW::AzimuthAero::PriceCrawler - Crawler for https://azimuth.aero/

VERSION

version 0.3

SYNOPSIS

    my $azo_price_crawler = WWW::AzimuthAero::PriceCrawler->new();
    $azo_price_crawler->prepare_requests()

DESCRIPTION

    Wrappper under L<WWW::AzimuthAero>

METHODS

new

See "new" in WWW::AzimuthAero

prepare_requests

Return arrray of hashes with params (from, to, date) for WWW::AzimuthAero::get method

    my @l = $azo_price_crawler->prepare_requests( max_date => '18.12.2019', verbose => 1, cities => [ qw/ROV LED/ ] );

In fact, combines "route_map_iata" in WWW::AzimuthAero::RouteMap and "get_schedule_dates" in WWW::AzimuthAero

Params

max_date - '%d.%m.%Y' format, if no specified will looks forward for 2 months, default max_date of "get_schedule_dates" in WWW::AzimuthAero

verbose - print amount of "get_schedule_dates" in WWW::AzimuthAero requests and future amount of "get" in WWW::AzimuthAero requests

cities - filter for "route_map_iata" in WWW::AzimuthAero::RouteMap

AUTHOR

Pavel Serikov <pavelsr@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2019 by Pavel Serikov.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.