Class: Miteru::Feeds::PhishingDatabase
- Defined in:
- lib/miteru/feeds/phishing_database.rb
Constant Summary collapse
- URL =
"https://raw.githubusercontent.com/mitchellkrogza/Phishing.Database/master/phishing-links-NEW-today.txt"
Instance Method Summary collapse
Instance Method Details
#urls ⇒ Object
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 |