mirror of
https://github.com/StrawberryMaster/wayback-machine-downloader.git
synced 2025-12-29 16:16:06 +00:00
updated deprecated calls, changed URI to https
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
module ArchiveAPI
|
||||
|
||||
def get_raw_list_from_api url, page_index
|
||||
request_url = "http://web.archive.org/cdx/search/xd?url="
|
||||
request_url = "https://web.archive.org/cdx/search/xd?url="
|
||||
request_url += url
|
||||
request_url += parameters_for_api page_index
|
||||
|
||||
open(request_url).read
|
||||
URI.open(request_url).read
|
||||
end
|
||||
|
||||
def parameters_for_api page_index
|
||||
|
||||
Reference in New Issue
Block a user