import os
import urllib.request
foldername="test_1"
os.makedirs(str(foldername))
tempurl=r"http://img2.wikia.nocookie.net/__cb20130802012237/camp-tv-series/images/thumb/e/e5/Adam.jpg/250px-Adam.jpg"
fullpath1=r"C:\Users\\files"+foldername
urllib.request.urlretrieve(tempurl, fullpath1)
This code is creating the folder but not retriving the file. if I give obsolute path instead of fullpath it works. am I missing anything
Initially I gave a test url. now I am giving an example of a obsolute url