diff --git a/lib/wayback_machine_downloader/archive_api.rb b/lib/wayback_machine_downloader/archive_api.rb index 4f2effd..d3e82b7 100644 --- a/lib/wayback_machine_downloader/archive_api.rb +++ b/lib/wayback_machine_downloader/archive_api.rb @@ -5,12 +5,7 @@ def get_raw_list_from_api url, page_index request_url += url request_url += parameters_for_api page_index - request_uri = URI.parse request_url - Net::HTTP.new('web.archive.org', nil).start { |http| - request = Net::HTTP::Get.new request_uri - response = http.request request - response.body - } + open(request_url).read end def parameters_for_api page_index