Sha256: 9a7b17c5a3c86f0db2cce26f912191648de20c553e72c23727a1ee36dd5eb34e
Contents?: true
Size: 903 Bytes
Versions: 4
Compression:
Stored size: 903 Bytes
Contents
=begin Arachni Copyright (c) 2010-2011 Tasos "Zapotek" Laskos <tasos.laskos@gmail.com> This is free software; you can copy and distribute and modify this program under the term of the GPL v2.0 License (See LICENSE file for details) =end module Anemone::Extractors # # Extracts meta refresh URLs. # # @author: Tasos "Zapotek" Laskos # <tasos.laskos@gmail.com> # <zapotek@segfault.gr> # @version: 0.1 # class MetaRefresh < Paths # # Returns an array of paths as plain strings # # @param [Nokogiri] Nokogiri document # # @return [Array<String>] paths # def run( doc ) begin doc.search( "//meta[@http-equiv='refresh']" ). map { |url| url['content'].split( ';' )[1].split( '=' )[1] } rescue end end end end
Version data entries
4 entries across 4 versions & 1 rubygems