Skip to content

Commit

Permalink
Merge branch 'antoneliasson-master'
Browse files Browse the repository at this point in the history
  • Loading branch information
hartator committed Nov 15, 2016
2 parents 4177425 + 7345218 commit 63941f9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
1 change: 0 additions & 1 deletion .travis.yml
Expand Up @@ -8,4 +8,3 @@ rvm:
- 2.2
- 2.3.1
- jruby
- rbx-2.2.2
2 changes: 1 addition & 1 deletion lib/wayback_machine_downloader.rb
Expand Up @@ -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

Expand Down
7 changes: 3 additions & 4 deletions lib/wayback_machine_downloader/archive_api.rb
Expand Up @@ -4,9 +4,8 @@ def get_raw_list_from_api url, page_index
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
Expand All @@ -28,4 +27,4 @@ def parameters_for_api page_index
parameters
end

end
end

0 comments on commit 63941f9

Please sign in to comment.