0.0
No commit activity in last 3 years
No release in over 3 years
Ruby Client for ThePirateBay.se
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 3.0.0.beta1
~> 1.9.0

Runtime

~> 0.8.4
~> 0.1.1
~> 1.6.0
 Project Readme

ThePirateBay Build Status Dependency Status Code Climate

Ruby Client for ThePirateBay.se

Installation

$ gem install the_pirate_bay

Or add this line to your application's Gemfile:

gem 'the_pirate_bay'

And then execute:

$ bundle

Usage

require "the_pirate_bay"

api = ThePirateBay.new

# You can search for a torrent by keyword
api.torrents.search("Fringe")
=> [#<ThePirateBay::Torrent::Collection id: "7810640", name: "Fringe S05E06 Season 5 Episode 6 HDTV x264 [GlowGaz...", seeders: "408", leechers: "116", magnet_uri: "magnet:?xt=urn:btih:0f4e3c1a4618b6d9658427e7778c602...", size: "303.89 MB", type: "Video > TV shows", uploaded_at: "Today 04:11", comments_count: "2", uploader: "GlowGaze">]

# If you have a torrent id, you can use it to find more information
torrent = api.torrents.find("7810640")
=> #<ThePirateBay::Torrent id: "7723168", name: "Fringe S05E03 HDTV x264-LOL [eztv]", description: "#EZTV @ EFNet -&gt; To avoid fakes, ALWAYS check th...", seeders: "2461", leechers: "118", quality: "+4 / -0 (+4)", size: "288.87 MiB (302897843 Bytes)", type: "Video > TV shows", hash: "84C153E4064D1AC1CC151A09070C8740C318D271", uploaded_at: "2012-10-13 12:33:16 GMT", uploaded_by: "eztv", comments_count: "6", files_count: "1", spoken_language: nil, written_language: nil, tags: nil, imdb_id: nil>

Work in Progress

  • Handle users
  • Sort results by relevance, seeders, leechers, size, date, user and type
  • Get results from other pages

Motivation

ThePirateBay.se is a very powerful engine, and it requires a powerful and specialized gem that can handle all it has to offer, seamlessly.

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

Copyright

Copyright (c) 2012 Javier Saldana. See LICENSE for details.