Class: Torrentz::Fetch::Vertor

Inherits:
Simple
  • Object
show all
Defined in:
lib/torrentz/fetch.rb

Overview

Returns torrent urls only.

Instance Method Summary collapse

Methods inherited from Simple

#doc, #initialize

Methods included from Logger

#logger

Constructor Details

This class inherits a constructor from Torrentz::Fetch::Simple

Instance Method Details

#getObject



75
76
77
78
79
80
81
# File 'lib/torrentz/fetch.rb', line 75

def get
  candidate = doc.css('ul.down_but li.bt a').map do |a|
    a['href']
  end.find do |url|
    url =~ /mod=download/
  end
end