class Dumper::Profiles::DeviantArt

Public Instance Methods

dump(url, path, from, to) click to toggle source
# File lib/dumper/profiles/deviantart.rb, line 24
def dump(url, path, from, to)
  from -= 1
  to   -= 1 if to >= 1

  Nokogiri::HTML(open(url)).xpath('//a[@class="thumb"]')[from..to].each { |u|
    @pool.process {
      Dumper.get path, u['data-super-img']
    }
  }
end