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://thepiratebay.org")

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

Future releases

  1. Scrape more info about the torrents
  2. Add functionality to allow uploading torrents
  3. Add user auth?
  4. Add ability to comment

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 or its author are related to ThePirateBay in any way.