rtv icon indicating copy to clipboard operation
rtv copied to clipboard

[Feature Request] Add support for connecting via Tor

Open isthisme opened this issue 6 years ago • 3 comments

I would like to use rtv to browse Reddit but I'd also like to connect via Tor. Can you add this as an option?

isthisme avatar Mar 20 '18 00:03 isthisme

Hi! Could you please explain what you would need in order to connect via Tor? Is it just a matter of replacing "www.reddit.com" with an onion URL, or is it more involved than that? Do you know of any other programs that do this that can be used as references?

michael-lazar avatar Mar 20 '18 01:03 michael-lazar

You need to be able to support socks5 proxies instead of just http, that is all. Tor usually listens on 127.0.0.1:9050. It is probably something that should be fixed in PRAW.

markasoftware avatar Mar 20 '18 17:03 markasoftware

In that case, you might be able to take advantage of what's described here: https://www.reddit.com/r/redditdev/comments/5s5wcq/how_do_i_point_praw_use_a_socks_proxy_for_now_i/

To summarize, if you installed RTV through pip, you would need to run

$ pip install requests[socks]

and then set an environment variable when launching rtv

$ HTTPS_PROXY="socks5://user:pass@host:port" rtv

michael-lazar avatar Mar 20 '18 22:03 michael-lazar