Specifying a proxy programatically
See original GitHub issueIs there any way you could support specifying a proxy programatically, like so:
r = praw.Reddit('Example bot', proxy='http://0.0.0.0/')
r.login()
I would much rather have this than having to deal with config files, and I’m sure others feel the same. If not, would it be pulled if I did this myself?
Issue Analytics
- State:
- Created 10 years ago
- Comments:13 (7 by maintainers)
Top Results From Across the Web
Programmatically change Windows system proxy settings issue
The solution is to use 'http' as schema in proxy address. Windows set the proxy setting for all protocols if the address schema...
Read more >Set HTTP proxy in Windows programmatically - Stack Overflow
I'm trying to see if it is possible to set HTTP proxy configuration programmatically from my C++/WinRT code. I found that one can...
Read more >How to set proxy programatically - Katalon Studio
Until there is an exception list, I'm thinking of setting the proxy when Katalon starts in order to load the plugins, and then...
Read more >How to change proxy settings programmatically?
I'm using version 10.2 on Linux, and need to access some web services via proxy server sometimes. Is there a way to change...
Read more >Connecting through Proxy Servers in Core Java - Baeldung
Java provides proxy handlers for HTTP, HTTPS, FTP, and SOCKS protocols. A proxy can be defined for each handler as a hostname and...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
If you configure a custom
Session
, you can accomplish this without environment variables. You need to modifySession.proxies
.I’m deleting my other two comments because I don’t think they’re helpful.
I don’t believe so, but @bboe can probably correct me if I’m wrong.
It’s not very elegant, but: