Download specific file in url using PHP/Python
<p>I previously used to use <code>wget -r</code> on the linux terminal for downloading files with certain extensions:</p>

<pre><code>wget -r -A Ext URL
</code></pre>

<p>But now I was assigned by my lecturer to do the same thing using PHP or Python.  Who can help?</p>

<p>I guess urllib pretty well for you</p>

<pre><code>import urllib
urllib.urlretrieve (URL, file)
</code></pre>

php python web-crawler wget