Eztv Torrents

From Scrubyt

Jump to: navigation, search
## 
#  Comment:
#  Shows torrents information from index page
#  (usually 3-4 days of week)
#  Author:
#  Carlan Calazans (carlan at gmail dot com) - 2008
# 
require 'rubygems'
require 'scrubyt'

eztv = Scrubyt::Extractor.define do
  fetch "http://www.eztv.it"

  mainpage "//" do
      release "//tr[@class='forum_header_border']" do
        name "/td[2]"
        group "/td[4]"
        size "/td[5]"
        seeds "/td[6]"
        peers "/td[7]"
        completed "/td[8]"
        timeonsite "/td[10]"
        download_link "/td[3]/a/@href"
        internal_serie_link "/td[1]/a/@href"
        internal_forum_link "/td[11]/a/@href"
      end
  end
end
puts eztv.to_xml
Personal tools