Sha256: 2cd6f7d3635669fd07f7c818b04223b2dfe8120163490cf5a91d1e5e9130d1ed
Contents?: true
Size: 543 Bytes
Versions: 2
Compression:
Stored size: 543 Bytes
Contents
# frozen_string_literal: true module Fushin module Posts class Seesaa < Post def main_selector "#content > div.blog > div > div.text" end def main_cleanup_selectors %w(script iframe .listCategoryArticle font) end def attachements @attachements ||= doc.css("div.text > a").map do |a| url = a.get("href") next unless url next unless url.include? "seesaa.net/image/" Models::Attachment.new url end.compact end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
fushin-0.4.2 | lib/fushin/posts/seesaa.rb |
fushin-0.4.1 | lib/fushin/posts/seesaa.rb |