Class: Miteru::Feeds::PhishingDatabase

Inherits:
Feed
  • Object
show all
Defined in:
lib/miteru/feeds/phishing_database.rb

Constant Summary collapse

URL =
"https://raw.githubusercontent.com/mitchellkrogza/Phishing.Database/master/phishing-links-ACTIVE-NOW.txt"

Instance Method Summary collapse

Instance Method Details

#urlsObject



11
12
13
14
15
16
17
# File 'lib/miteru/feeds/phishing_database.rb', line 11

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