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