Skip to content

Commit 63941f9

Browse files
committed
Merge branch 'antoneliasson-master'
2 parents 4177425 + 7345218 commit 63941f9

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

.travis.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,3 @@ rvm:
88
- 2.2
99
- 2.3.1
1010
- jruby
11-
- rbx-2.2.2

lib/wayback_machine_downloader.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class WaybackMachineDownloader
1414

1515
include ArchiveAPI
1616

17-
VERSION = "1.1.3"
17+
VERSION = "1.1.4"
1818

1919
attr_accessor :base_url, :directory, :from_timestamp, :to_timestamp, :only_filter, :exclude_filter, :all, :list, :maximum_pages, :threads_count
2020

lib/wayback_machine_downloader/archive_api.rb

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,8 @@ def get_raw_list_from_api url, page_index
44
request_url = "http://web.archive.org/cdx/search/xd?url="
55
request_url += url
66
request_url += parameters_for_api page_index
7-
request_uri = URI.parse request_url
8-
response = Net::HTTP.get_response request_uri
9-
response.body
7+
8+
open(request_url).read
109
end
1110

1211
def parameters_for_api page_index
@@ -28,4 +27,4 @@ def parameters_for_api page_index
2827
parameters
2928
end
3029

31-
end
30+
end

0 commit comments

Comments
 (0)