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.
Python で urllib2.urlopen の制御を実装する方法は? 5秒以内にxmlデータが返されない場合は、この接続を切断して再度接続することを監視したいだけですか? タイマーを使用する必要がありますか?どうも
urllib2.urlopen("http://www.example.com", timeout=5)