Sha256: 09241a9967a4c3b8c722d9bd5c672f295788fcc40fad5ce26bec4773dce3470a
Contents?: true
Size: 610 Bytes
Versions: 5
Compression:
Stored size: 610 Bytes
Contents
require 'service' module DiffNews class FAZ < Service def initialize url super url end def self.provider 'faz.net' end def self.base_url 'http://www.faz.net/aktuell/' end def self.valid_url /^https?:\/\/(www.)?faz.net/ end private def title normalize_text(strip_html(@doc.css("h2").first)) rescue '' end def teaser 'TODO' rescue '' end def text normalize_text(strip_html(@doc.css(".FAZArtikelText").first)) rescue '' end register_service end end
Version data entries
5 entries across 5 versions & 1 rubygems