how can i put a input to take the (( url )) for this function
<pre><code>import random
import urllib.request

def down_load_imag(url):
    name = random.randrange(1, 1000)
    full_name = str(name) + ".jpg"
    urllib.request.urlretrieve(url, full_name)

down_load_imag ("http://3.bp.blogspot.com/-WjQkpjkw9uQ/Vij8lG0pCdI/AAAAAAAAAJ4/-CifLZ5KG-Y/s1600/fedora_infinity_140x140.png") 
</code></pre>

<p>in python3 you must use <code>input()</code> function:</p>

<pre><code>import random
import urllib.request

def down_load_imag(url):
    name = random.randrange(1, 1000)
    full_name = str(name) + ".jpg"
    urllib.request.urlretrieve(url, full_name)
url = input('Enter url: ')
# here you can evaluate url with regex and if passed:
down_load_imag (url) 
</code></pre>

python python-3.x