 <p>What does your <code>curl</code> call look like? You can use <code>subprocess.call()</code> to run a shell command from a python script.</p> <p>Here's an example of downloading two images:</p> <p><strong>script.py</strong></p> <pre><code>import subprocess data = [ ("homer.jpg", "http://upload.wikimedia.org/wikipedia/en/0/02/Homer_Simpson_2006.png"), ("bart.jpg", "http://upload.wikimedia.org/wikipedia/en/a/aa/Bart_Simpson_200px.png") ] for datum in data: subprocess.call(["curl", "-o", datum[0], datum[1]]) </code></pre> <p>The <code>subprocess.call()</code> function takes a list of arguments so in my example it translates to running the following commands from a terminal:</p> <ul> <li><code>curl -o "homer.jpg" "http://upload.wikimedia.org/wikipedia/en/0/02/Homer_Simpson_2006.png"</code></li> <li><code>curl -o "bart.jpg" "http://upload.wikimedia.org/wikipedia/en/a/aa/Bart_Simpson_200px.png"</code></li> </ul>