Sha256: 1906e95eae35a24f7035bb6a4861e45bc972a7b2ff9cb01962aa59f023d765df
Contents?: true
Size: 644 Bytes
Versions: 3
Compression:
Stored size: 644 Bytes
Contents
# -*- coding: utf-8 -*- class NijigazouSokuhou < EroGetter::Base name '二次画像速報' url %r{http://nijigazo.2chblog.jp/archives/\d+.html} target ".article-body-more > a > img" do |path| path.parent[:href] if path.parent[:href] =~ /jpe?g|png|gif$/ end sub_directory do path = targets.first.split('/') d = path[3..5].join('') chara = path[6] File.join(chara, d) end after ["//a[@rel='prev']", "//a[@rel='next']"] do |path| path.text.match(Regexp.escape(title_part)) end def title_part @title_part ||= title.split(/:/).last.match(/(.+?)(その.+)?$/)[1].strip.gsub(/&/, '&') end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ero_getter-1.1.2 | lib/downloader/nijigazou_sokuhou.rb |
ero_getter-1.1.1 | lib/downloader/nijigazou_sokuhou.rb |
ero_getter-1.1.0 | lib/downloader/nijigazou_sokuhou.rb |