Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
次のコードを使用して、urllib2 でプロキシを使用しています。
proxy = urllib2.ProxyHandler({'http': '198.154.114.100'}) opener = urllib2.build_opener(proxy) urllib2.install_opener(opener)
プロキシが実際に使用されているかどうかを確認するにはどうすればよいですか? urllib モジュールに使用されている IP を出力したいと思います。