I get an error when I used urllib2.urlopen() to open a remote file in a ftp server

Ian Kelly ian.g.kelly at gmail.com
Thu Jan 6 12:55:22 EST 2011


On Thu, Jan 6, 2011 at 10:26 AM, Ariel <isaacrc82 at gmail.com> wrote:
> Hi everybody:
>
> I get an error when I used urllib2.urlopen() to open a remote file in a ftp
> server, My code is the following:
>
>>>> file = 'ftp:/192.168.250.14:2180/RTVE/VIDEOS/Thisisit.wmv'

Looks to me like you're missing a slash separating the protocol from
the hostname.  Try 'ftp://' instead of 'ftp:/'.



More information about the Python-list mailing list