wayback-machine-downloader
wayback-machine-downloader copied to clipboard
warning: calling URI.open via Kernel#open is deprecated, call URI.open directly or use URI#open
I believe the code should be updated to match the recent version of Ruby.
I get constantly get this warning:
warning: calling URI.open via Kernel#open is deprecated, call URI.open directly or use URI#open
on Ubuntu 20.04 running ruby 2.7, but not on Ubuntu 18.04 running ruby 2.5.
Although this is just a warning, it is very annoying as fills the output. I think URI.open has been deprecated for security reasons.
Does it still woks?
Running Lubuntu 16.04 - the output is clean
I just tried it on Kali Linux 2020.3 ) - I had the same dirty warning
warning: calling URI.open via Kernel#open is deprecated, call URI.open directly or use URI#open
I agree it is very annoying as it fills the output ( we need perfect output.
the downloader does its job in a good way though
Can confirm this bug on Windows 10 using Ruby 2.7
Same thing on macOS 11.0.1 with Ruby installed through homebrew.
ruby 2.7.2p137 (2020-10-01 revision 5445e04352) [x86_64-darwin20]
+1
Works, but just clutters up the output - would be nice to get this fixed running Ubuntu 20.04.1
Just wanted to say you might have potentially saved someone who lost 4 years worth of content due to a shitty free host platform and a wordpress update button.
I thought I did something wrong. It's downloading but, it clutters the output.
Mac OS 10.13.6, Homebrew, Ruby 2.7.2p137 (2020-10-01 revision 5445e04352) [x86_64-darwin15]
** I'm not sure if it's downloading everything though. This is my first time using it. It's only pulling the index.html from most of the 640 captures. Based on #179 I'm not sure if that's how it works now and this is separate.
In lib/wayback_machine_downloader.rb at line #271, change: open("http.... to URI.open(http...
and in /lib/wayback_machine_downloader/archive_api.rb at line #8, change:
open(request_url).read to URI.open(request_url).read
and those error messages should go away...
just replace html = open(url) to html = URI.open(url)