Get wget to never time out or catch timeout on python
<p>I am using python 2.7 with the wget module. 
<a href="https://pypi.python.org/pypi/wget" rel="nofollow">https://pypi.python.org/pypi/wget</a></p>

<p>The URL to download is not responsive sometimes. It can take ages to download and when this happens, <code>wget</code> times out. How can I get wget to never time out or at least catch the timeout?</p>

<p>The code to download is simple.</p>

<pre><code>wget.download(url_download)
</code></pre>

<p>You could use <a href="http://docs.python-requests.org/en/latest/" rel="nofollow">requests</a> instead:</p>

<pre><code>requests.get(url_download)
</code></pre>

<p>if you don't specify a timeout argument it never times out.</p>

python python-2.7 wget