we can use such higher-level interface to download anything with an address on the web--files published by ftp sites (using urls that start with ftp://)web pages and output of scripts that live on remote servers (using (using file:/urlsfor instancethe script in example - does the same as the one in example - but it uses the general urllib request module to fetch the source distribution fileinstead of the protocol-specific ftplib example - pp \internet\ftp\getone-urllib py #!/usr/local/bin/python "" python script to download file by ftp by its url stringuse higher-level urllib instead of ftplib to fetch fileurllib supports ftphttpclient-side httpsand local filesand handles proxiesredirectscookiesand moreurllib also allows downloads of html pagesimagestextetc see also python html/xml parsers for web pages fetched by urllib in ""import osgetpass from urllib request import urlopen client-side scripting socket-based web tools