Class: Miteru::Feeds::UrlScanPro

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

Instance Method Summary collapse

Instance Method Details

#apiObject



8
9
10
# File 'lib/miteru/feeds/urlscan_pro.rb', line 8

def api
  @api ||= ::UrlScan::API.new
end

#urlsObject



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

def urls
  urls_from_pro_feed
rescue ::UrlScan::ResponseError => e
  puts "Failed to load urlscan.io pro feed (#{e})"
  []
end