Is it possible to establish a download directory with urllib.request.urlretrieve?

Asked

Viewed 22 times

0

I am trying to set a default download forwarding directory after using urllib.request.urlretrieve, to avoid having to move the file with and shutil.

Does anyone know if it’s possible and how to do?

  • 1

    The function urllib.request.urlretrieve is a legacy Python 2 function and should not be used in new codes at the risk of becoming obsolete at any time. This function has the parameter filename where sets the name and path where the information should be saved.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.