You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm currently testing wayback_machine_downloader under OpenBSD amd64/7.5-stable and ruby 3.2.4. When attempting to download a single page, for example:
$ ./bin/wayback_machine_downloader "http://www.folklore.org/ProjectView.py?name=Newton" --to 20120222134837 -l Getting snapshot pages~/Projects/wayback-machine-downloader/lib/wayback_machine_downloader/archive_api.rb:8:in `initialize': No such file or directory @ rb_sysopen - http://web.archive.org/cdx/search/xd?url=http://www.folklore.org/ProjectView.py?name=Newton&fl=timestamp,original&collapse=digest&gzip=false&filter=statuscode:200&to=20120222134837 (Errno::ENOENT)
from ~/Projects/wayback-machine-downloader/lib/wayback_machine_downloader/archive_api.rb:8:in `open'
from ~/Projects/wayback-machine-downloader/lib/wayback_machine_downloader/archive_api.rb:8:in `get_raw_list_from_api'
from ~/Projects/wayback-machine-downloader/lib/wayback_machine_downloader.rb:88:in `get_all_snapshots_to_consider'
from ~/Projects/wayback-machine-downloader/lib/wayback_machine_downloader.rb:105:in `get_file_list_curated'
from ~/Projects/wayback-machine-downloader/lib/wayback_machine_downloader.rb:168:in `get_file_list_by_timestamp'
from ~/Projects/wayback-machine-downloader/lib/wayback_machine_downloader.rb:179:in `list_files'
from ./bin/wayback_machine_downloader:70:in `<main>'
This is because open-uri used to replace Kernel#open, but that's a security nightmare and so that functionality was deprecated and finally removed sometime in ruby 3.x. So, uses of open() which fetch URLs should be replaced with URI.open().
The text was updated successfully, but these errors were encountered:
I'm currently testing
wayback_machine_downloader
under OpenBSD amd64/7.5-stable andruby
3.2.4. When attempting to download a single page, for example:This is because
open-uri
used to replaceKernel#open
, but that's a security nightmare and so that functionality was deprecated and finally removed sometime inruby
3.x. So, uses ofopen()
which fetch URLs should be replaced withURI.open()
.The text was updated successfully, but these errors were encountered: