Awesome
Pirrrate
A basic Ruby API client for The Pirate Bay.
Installation
Add this line to your application's Gemfile:
gem 'pirrrate'
Or install it yourself as:
$ gem install pirrrate
Usage
require 'pirrrate'
search = Pirrrate.search('breaking bad s01e01', order: [:seeders, :desc], category: [:video, :hd_tv_shows])
search.torrents
# => [ #<Torrent>, #<Torrent> ]
bb = search.torrents.first # best result
MagicalTorrentClientAPI.download_magent(bb.magnet_link)
# download the torrent
Contributing
- Fork it (http://github.com/goshakkk/pirrrate/fork)
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
License
MIT.