Sha256: 8df4b2f9b035df122eadca27045545c992437fd20bdee3a8343e23da79a96da9
Contents?: true
Size: 602 Bytes
Versions: 2
Compression:
Stored size: 602 Bytes
Contents
# encoding: utf-8 module Nokaya class Deviantart < Basic def initialize args, options = {} super(args, options) @type = :deviantart parsed = parse(args[0]) @urls = album(parsed).compact @author = author_name() @path = "#{@path}/deviantart-#{@author}-#{@workers.timed}" @filenames = name_files() end private def author_name @workers.sanitize(@args[0].split('.com/')[1].chomp('/')) end def album page return [] if page.nil? refs = page.css('a.thumb') refs.map {|li| li['data-super-img']} end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
nokaya-0.1.6 | lib/nokaya/deviantart.rb |
nokaya-0.1.5 | lib/nokaya/deviantart.rb |