mirror of
https://github.com/StrawberryMaster/wayback-machine-downloader.git
synced 2025-12-17 17:56:44 +00:00
Merge branch 'antoneliasson-master'
This commit is contained in:
commit
63941f99dd
@ -8,4 +8,3 @@ rvm:
|
||||
- 2.2
|
||||
- 2.3.1
|
||||
- jruby
|
||||
- rbx-2.2.2
|
||||
|
||||
@ -14,7 +14,7 @@ class WaybackMachineDownloader
|
||||
|
||||
include ArchiveAPI
|
||||
|
||||
VERSION = "1.1.3"
|
||||
VERSION = "1.1.4"
|
||||
|
||||
attr_accessor :base_url, :directory, :from_timestamp, :to_timestamp, :only_filter, :exclude_filter, :all, :list, :maximum_pages, :threads_count
|
||||
|
||||
|
||||
@ -4,9 +4,8 @@ module ArchiveAPI
|
||||
request_url = "http://web.archive.org/cdx/search/xd?url="
|
||||
request_url += url
|
||||
request_url += parameters_for_api page_index
|
||||
request_uri = URI.parse request_url
|
||||
response = Net::HTTP.get_response request_uri
|
||||
response.body
|
||||
|
||||
open(request_url).read
|
||||
end
|
||||
|
||||
def parameters_for_api page_index
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user