find all public files indexed by google inside url https://ceditor.setka.io/stk-plugins
require 'net/http' require 'json' def collect_links(url) uri = URI("https://www.googleapis.com/customsearch/v1?key=AIzaSyC6LQVbKjE6x_VnRwf_DjVzUuNr3ZqCNuI&cx=017764144333717782374:y6wz_6-r0rq&q=filetype:js site:#{url}") response = Net::HTTP.get(uri) json = JSON.parse(response) json['items'].map { |item| item['link'] } end collect_links("https://ceditor.setka.io/stk-plugins")