HailHydra

HailHydra is an unofficial pseudo-API for ThePirateBay.

Installation

Add this line to your application's Gemfile:

gem 'hail_hydra'

And then execute:

$ bundle

Or install it yourself as:

$ gem install hail_hydra

Usage

From the command line:

$ thepiratebay totallynotillegal

From code

s = HailHydra::TPB.new("https://apibay.org")

res = s.search('totallynotillegal')
res.each do |torrent|
    puts torrent.name + " " + torrent.size
end

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/Gr3atWh173/hail_hydra. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.

License

The gem is available as open source under the terms of the MIT License.

Code of Conduct

Everyone interacting in the HailHydra project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.

DISCLAIMER

Neither this project nor its author are related to ThePirateBay in any way.