Sha256: 7dec28c8f79b25bd2c5f49261005f079a1ba3dc69d1a212ebeabea72c1559905
Contents?: true
Size: 485 Bytes
Versions: 5
Compression:
Stored size: 485 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-ACTIVE-NOW.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
5 entries across 5 versions & 1 rubygems