class Osakana::Monitor
Public Class Methods
ayashige_lookup(keyword)
click to toggle source
# File lib/osakana/monitor.rb, line 17 def self.ayashige_lookup(keyword) websites = Ayashige.lookup(keyword) attachements = websites.map(&:to_attachement) Notifier.notify("Ayashige keyword: #{keyword}", attachements) end
censys_lookup(query)
click to toggle source
# File lib/osakana/monitor.rb, line 11 def self.censys_lookup(query) websites = Censys.lookup(query) attachements = websites.map(&:to_attachement) Notifier.notify("Censys query: #{query}", attachements) end
check_newly_domains(keyword)
click to toggle source
# File lib/osakana/monitor.rb, line 5 def self.check_newly_domains(keyword) websites = DNPedia.search(keyword) attachements = websites.map(&:to_attachement) Notifier.notify("DNPedia keyword: #{keyword}", attachements) end
urlscan_lookup(query, size:)
click to toggle source
# File lib/osakana/monitor.rb, line 23 def self.urlscan_lookup(query, size:) websites = Urlscan.lookup(query, size: size) attachements = websites.map(&:to_attachement) Notifier.notify("urlscan.io query: #{query}", attachements) end