public
Description: Newzbin Library to search Newzbin
Clone URL: git://github.com/maddox/newzbin.git
editted readme
maddox (author)
Tue Mar 04 19:22:44 -0800 2008
commit  278aa5afc76f8dd819f6411e71e04cb54fa94b4e
tree    7062e6f0cacc08befc4bfd3361a5ce788ca820e0
parent  52c45cc648afc30b03e9d696ad080c595b8f6df3
0
...
1
2
3
 
 
 
4
5
6
7
8
 
 
 
 
 
 
9
10
 
 
 
 
 
 
 
 
 
 
 
 
11
12
 
 
 
 
...
1
2
3
4
5
6
7
8
9
 
 
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
 
31
32
33
34
0
@@ -1,12 +1,34 @@
0
 ####### Newzbin API
0
 ### http://v3.newzbin.com
0
 
0
+### Created by Jon Maddox on 2007-02-10.
0
+
0
+
0
 open a new newzbin connection, and search it with the method provided. Pass it vars to narrow the search
0
 Download the nzb using the provided get_nzb method
0
 
0
-newz = Newzbin::Connection.new('username', 'password')
0
-nzbs = newz.search(:q => 'casino royale', :ps_rb_video_format => 131072)
0
+# You need to pass in Newzbin's required cookies in order to get rich metadata attributes on the nzbs
0
+# If you don't you can still search, you just dont get values like resolution, source, and audio data etc.
0
+newz = Newzbin::Connection.new(:nzbSmoke => "RKTU0McXx%24Uc4e4KXP1L0sl4O1U9YOchO%2B0DA%3D", :nzbSessionID => "a0fed567eb1a3e6e95c8a3d46fe0c6e7")
0
+
0
+
0
+nzbs = newz.search(:q => 'independence day', :ps_rb_video_format => 16, "category"=>"6", "commit"=>"search")
0
 
0
 puts nzbs.inspect
0
+puts nzbs.first.title =>
0
+puts nzbs.first.attributes.inspect
0
+
0
+
0
+newz.get_nzb(nzbs.first.id) => downloads the nzb file
0
+
0
+
0
+
0
+
0
+
0
+# to find more vars to search with, view the source of this page. yah yeah, i know that sucks. It wont always suck
0
+# http://v3.newzbin.com/search
0
 
0
-newz.get_nzb(nzbs.first.id)
0
+# Here's a little taste
0
+# :q => casino+royale # this is the query you're searching for
0
+# :category => 5 # category is movies, tv, etc
0
+# :ps_rb_video_format => 131072 # format means xvid, 720p, x264, etc

Comments

    No one has commented yet.