Sha256: f44efecc02c0d777eaa4965cd961529c1cb61efe8aa070b2b2058543d8a04bfb
Contents?: true
Size: 485 Bytes
Versions: 3
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 info "Failed to load phishing database feed (#{e})" [] end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
miteru-1.2.2 | lib/miteru/feeds/phishing_database.rb |
miteru-1.2.1 | lib/miteru/feeds/phishing_database.rb |
miteru-1.2.0 | lib/miteru/feeds/phishing_database.rb |