class Dumper::Profiles::Fc2
Public Instance Methods
dump(url, path, from, to)
click to toggle source
# File lib/dumper/profiles/fc2.rb, line 24 def dump(url, path, from, to) from -= 1 to -= 1 if to >= 1 Nokogiri::HTML(open(url)).xpath('//a[@target="_blank"]/@href')[from..to].each { |p| @pool.process { Dumper.get(path, p) if p.to_s.end_with?('jpg') || p.to_s.end_with?('png') } } end