Sha256: e996ba770207aa44964e4241cd6e1f54d3de8b721706c724cc97b5527653b37c

Contents?: true

Size: 484 Bytes

Versions: 7

Compression:

Stored size: 484 Bytes

Contents

# frozen_string_literal: true

require "json"
require "uri"

module Miteru
  class Feeds
    class PhishingDatabase < Feed
      URL = "https://raw.githubusercontent.com/mitchellkrogza/Phishing.Database/master/phishing-links-NEW-today.txt"

      def urls
        body = get(URL)
        body.to_s.lines.map(&:chomp)
      rescue HTTPResponseError, HTTP::Error, JSON::ParserError => e
        puts "Failed to load phishing database feed (#{e})"
        []
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
miteru-0.14.6 lib/miteru/feeds/phishing_database.rb
miteru-0.14.5 lib/miteru/feeds/phishing_database.rb
miteru-0.14.4 lib/miteru/feeds/phishing_database.rb
miteru-0.14.3 lib/miteru/feeds/phishing_database.rb
miteru-0.14.2 lib/miteru/feeds/phishing_database.rb
miteru-0.14.1 lib/miteru/feeds/phishing_database.rb
miteru-0.14.0 lib/miteru/feeds/phishing_database.rb