waybackpack icon indicating copy to clipboard operation
waybackpack copied to clipboard

Add support for proxy and dont verify certificate args

Open SwiftExtender opened this issue 11 months ago • 4 comments

Sometimes archive.org cant be accessed without proxy so i added support for proxy specifying CLI Example: waybackpack url --proxy http://host:port -d output_folder

Also i added support for dont verifiying certs. It can be helpful is CA of archive.org cant be trusted (in rare cases it can be fired by using proxies) CLI Example: waybackpack url --proxy http://host:port --no-verify-certificate -d output_folder

SwiftExtender avatar Jan 28 '25 21:01 SwiftExtender

Since waybackpack relies on the requests module for fetching archived pages, I believe setting the HTTP{S}_PROXY environment variables should work here, without any need for modifying the code:

Screenshot 2025-04-20 at 10 39 18 PM

... but does that not work for your use case? If so, could you include a test that helps verify/debug?

jsvine avatar Apr 21 '25 02:04 jsvine

Setting PROXY env variables override proxy settings for programs written on Python, Ruby, Go. I would like to set different proxies for different processes

SwiftExtender avatar Apr 24 '25 18:04 SwiftExtender

If I'm understanding your concern correctly, you can also set environment variables on a process-level, e.g.:

HTTPS_PROXY="https://example.com" waybackpack [...]

... which would set the environment variable just for that invocation and not affect any other processes.

jsvine avatar Apr 24 '25 22:04 jsvine

Ok, option for setting proxy may be not useful, but setting disable of certificate check still important

SwiftExtender avatar Apr 28 '25 12:04 SwiftExtender