Sha256: 28f8cb900e9525a6079987a673a622de29088446e29f7159a3ef9c1da5df77fa

Contents?: true

Size: 374 Bytes

Versions: 5

Compression:

Stored size: 374 Bytes

Contents

#!/usr/bin/env ruby

require 'hail_hydra'

domain = "https://thepiratebay.org"
search = ARGV[0]
pages = 1

HailHydra::TPB.new(domain).search(search, pages).each do |result|
  puts ""
  puts "NAME: " + result.name
  puts "URL: " + result.url
  puts "SEEDERS: " + result.seeders
  puts "LEECHERS: " + result.leechers
  puts "MAGNET: " + result.magnet_link
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
hail_hydra-0.2.3 bin/thepiratebay.rb
hail_hydra-0.2.2 bin/thepiratebay.rb
hail_hydra-0.2.1 bin/thepiratebay.rb
hail_hydra-0.2.0 bin/thepiratebay.rb
hail_hydra-0.1.0 bin/thepiratebay.rb