Sha256: f4255a6f1905e3accd3426e77bf70fc4f111977242f677415d49e4da4d184548
Contents?: true
Size: 792 Bytes
Versions: 2
Compression:
Stored size: 792 Bytes
Contents
# frozen_string_literal: true # original author: Kent 'picat' Gruber module Shodan module Clients class Query < Base # Use this method to obtain a list of search queries that users have saved in Shodan. def list(**params) get("/shodan/query", params) end # Use this method to search the directory of search queries that users have saved in Shodan. def search(query, **params) params[:query] = query params = turn_into_query(params) get("/shodan/query/search", params) end # Use this method to obtain a list of popular tags for the saved search queries in Shodan. def tags(size = 10) params = {} params[:size] = size get("/shodan/query/tags", params) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
shodanx-0.2.0 | lib/shodan/clients/query.rb |
shodanx-0.1.0 | lib/shodan/clients/query.rb |