NAME
WebService::Strike - [OBSOLETE] Get torrent info from the now-discontinued getstrike.net API
SYNOPSIS
use WebService::Strike;
my $t = strike 'B425907E5755031BDA4A8D1B6DCCACA97DA14C04';
say $t->title; # Arch Linux 2015.01.01 (x86\/x64)
say $t->magnet; # Returns a magnet link
my $torrent = $t->torrent; # Returns the torrent file
$t->torrent('file.torrent'); # Downloads the torrent file to 'file.torrent'
my @debian = strike_search 'Debian';
say 'Found ' . @debian . ' torrents matching "Debian"';
say 'First torrent has info hash ' . $debian[0]->hash;
my $mp = strike_search 'Modern perl', 1, category => 'Books';
say 'Torrent has ' . $mp->count . ' files. They are:';
say join ' ', @{$mp->file_names};
my $info = strike_imdb 'tt1520211';
say 'IMDB ID ', $info->{imdbid}, ' is ', $info->{title}, ' (', $info->{year}, ')';
say 'Plot (short): ', $info->{shortplot};
DESCRIPTION
The API was discontinued. The code in this module remains, but it does not achieve any useful purpose.
Strike API is a service for getting information about a torrent given its info hash. WebService::Strike is a wrapper for this service.
- strike(@info_hashes)
-
Returns a list of WebService::Strike::Torrent objects in list context or the first such object in scalar context. Dies in case of error.
- strike_query
-
Alias for strike. Not exported by default.
- strike_search($phrase, [$full, [ key => value ... ]])
-
Searches for torrents given a phrase. Returns a list of WebService::Strike::Torrent objects in list context or the first such object in scalar context.
If $full is false (default), the returned objects will be incomplete: their file_names and file_lengths accessors will return undef.
If $full is true, strike will be called with the info hashes of the found torrents, thus obtaining complete objects.
You can filter the search by appending key => value pairs to the call. For example:
strike_search 'windows', 0, category => 'Applications', sub_category => 'Windows';
- strike_imdb($imdb_id)
-
Get informaton about a movie from IMDB. Takes an IMDB ID and returns a hashref of unspecified format. All keys are lowercased.
SEE ALSO
WebService::Strike::Torrent, https://getstrike.net/api/, WWW::Search::Torrentz
AUTHOR
Marius Gavrilescu, <marius@ieval.ro>
COPYRIGHT AND LICENSE
Copyright (C) 2015-2016 by Marius Gavrilescu
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.20.2 or, at your option, any later version of Perl 5 you may have available.