Sha256: 7bce1d07ef02ebbc9e4cc467c1bea39bcf462c81459eb74c161af3ecc2760c38
Contents?: true
Size: 429 Bytes
Versions: 4
Compression:
Stored size: 429 Bytes
Contents
# frozen_string_literal: true require "csv" module Miteru class Feeds class PhishTank < Feed ENDPOINT = "http://data.phishtank.com" def urls res = get("#{ENDPOINT}/data/online-valid.csv") table = CSV.parse(res, headers: true) table.map { |row| row["url"] } rescue HTTPResponseError => e puts "Failed to load PhishTank feed (#{e})" [] end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
miteru-0.9.6 | lib/miteru/feeds/phishtank.rb |
miteru-0.9.5 | lib/miteru/feeds/phishtank.rb |
miteru-0.9.4 | lib/miteru/feeds/phishtank.rb |
miteru-0.9.3 | lib/miteru/feeds/phishtank.rb |