Net::isoHunt - Access isohunt.com from Perl
version 0.102770
use Net::isoHunt; my $ih = Net::isoHunt->new(); my $ih_request = $ih->prepare_request( { 'ihq' => 'ubuntu' } ); $ih_request->start(21); $ih_request->rows(20); $ih_request->sort('seeds'); my $ih_response = $ih_request->execute(); print 'Title: ', $ih_response->title(), "\n"; print 'Description: ', $ih_response->description(), "\n"; my $image = $ih_response->image(); print 'Image title: ', $image->title(), "\n"; print 'Image URL: ', $image->url(), "\n"; my @items = @{ $ih_response->items() }; my $item = shift @items;
new
Constructs and returns a Net::isoHunt object.
prepare_request
Returns a Net::isoHunt::Request object based on the arguments passed. Accepts a hash reference. Valid arguments are listed in Net::isoHunt::Request. ihq is required.
ihq
Alan Haggai Alavi <alanhaggai@alanhaggai.org>
This software is copyright (c) 2010 by Alan Haggai Alavi.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Net::isoHunt, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::isoHunt
CPAN shell
perl -MCPAN -e shell install Net::isoHunt
For more information on module installation, please visit the detailed CPAN module installation guide.