human
How to download to a specific directory with Python?
assistant
Here is some code to download to a directory '/path/to/dir/filename.ext' from source 'http://example.com/file.ext'

urllib.request.urlretrieve('http://example.com/file.ext', '/path/to/dir/filename.ext')

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.