Sha256: f90a8090ad0a7e6823d33a1ab44d25ca385da7c270adc91f2a787b77dc7f4df4
Contents?: true
Size: 651 Bytes
Versions: 4
Compression:
Stored size: 651 Bytes
Contents
# frozen_string_literal: true module Miteru class Feeds class UrlScanPro < Base # # @param [String] base_url # def initialize(base_url = "https://urlscan.io") super @headers = {"api-key": api_key} end def urls (json["results"] || []).map { |result| result["page_url"] } end private def api_key Miteru.config.urlscan_api_key end def q Miteru.config.urlscan_date_condition end def format "json" end def json get_json("/api/v1/pro/phishfeed", params: {q:, format:}) end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
miteru-3.0.1 | lib/miteru/feeds/urlscan_pro.rb |
miteru-3.0.0 | lib/miteru/feeds/urlscan_pro.rb |
miteru-2.4.0 | lib/miteru/feeds/urlscan_pro.rb |
miteru-2.3.2 | lib/miteru/feeds/urlscan_pro.rb |