Popular recipes by Kévin Gomez http://code.activestate.com/recipes/users/4172815/2010-01-16T04:50:07-08:00ActiveState Code RecipesImprovements of the urllib.URLopen.retrieve() method (Python) 2010-01-16T04:50:07-08:00Kévin Gomezhttp://code.activestate.com/recipes/users/4172815/http://code.activestate.com/recipes/577009-improvements-of-the-urlliburlopenretrieve-method/ <p style="color: grey"> Python recipe 577009 by <a href="/recipes/users/4172815/">Kévin Gomez</a> (<a href="/recipes/tags/retrieve/">retrieve</a>, <a href="/recipes/tags/urllib/">urllib</a>). </p> <p>I improved the urllib.URLopen.retrieve() method so that it can restart a download if it failed. And like wget does (with wget -c), it restarts where it stopped. The number of maximum tries can be changed.</p>