public
Description: Newzbin Library to search Newzbin
Clone URL: git://github.com/maddox/newzbin.git
maddox (author)
Fri Jun 27 23:23:12 -0700 2008
commit  80c12c7db88fc8d5e87458df51e2d01b3ddff827
tree    2a79a345c97bb3fc74e8ec3b139801ad7ca433af
parent  b4a994fd56ccc4a048a1b39eb105c6f7bf4e72ea
name age message
file README Fri Jun 27 23:23:12 -0700 2008 updated readme [maddox]
file newzbin.rb Fri Jun 27 23:04:50 -0700 2008 added mechanize for getting that cookie [maddox]
directory specs/ Fri Jun 27 23:04:50 -0700 2008 added mechanize for getting that cookie [maddox]
README
####### Newzbin API
### http://v3.newzbin.com

### Created by Jon Maddox on 2007-02-10.


open a new newzbin connection, and search it with the method provided. Pass it vars to narrow the search
Download the nzb using the provided get_nzb method

# You need to pass in Newzbin's required cookies in order to get rich metadata attributes on the nzbs
# If you don't you can still search, you just dont get values like resolution, source, and audio data etc.
newz = Newzbin::Connection.new('username', 'password')


nzbs = newz.search( :q => 'independence day', :ps_rb_video_format => 16, :category => 6 )

puts nzbs.inspect
puts nzbs.first.title => 
puts nzbs.first.attributes.inspect


newz.get_nzb(nzbs.first.id) => downloads the nzb file



# to find more vars to search with, view the source of this page. yah yeah, i know that sucks. It wont always suck
# http://v3.newzbin.com/search

# Here's a little taste 
# :q => casino+royale # this is the query you're searching for
# :category => 5 # category is movies, tv, etc
# :ps_rb_video_format => 131072 # format means xvid, 720p, x264, etc