class Ocawari::Strategy::NikkanSports

Constants

CSS_SELECTORS

Private Instance Methods

parse() click to toggle source
# File lib/ocawari/strategy/nikkan_sports.rb, line 11
def parse
  page.css(CSS_SELECTORS.join(", ")).map do |image|
    path = image["style"].
             sub("background-image: url(", "").
             sub(/\);.*$/, "")

    File.join("www.nikkansports.com", path)
  end
end