Deprecated is one thing, might become deprecated at some point in the future is another.
If it suits your needs, I'd continuing using urlretrieve
.
That said, you can do without it:
from urllib.request import urlopen
from shutil import copyfileobj
with urlopen(my_url) as in_stream, open('my_filename', 'wb') as out_file:
copyfileobj(in_stream, out_file)
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…