Downloading files using urllib in a for loop?

Fredrik Lundh fredrik at pythonware.com
Wed Feb 15 05:30:40 EST 2006


Martin Franklin wrote:

> "No such file or directory: ''" sounds to me like you are trying
> to open a file called '' (empty string)
>
> try adding some debugging
>
>      print theimage, imagepath

or, better:

    print repr(theimage), repr(imagepath)

</F>






More information about the Python-list mailing list