URL open and read : URL « Network « Python






URL open and read

 
import urllib

print urllib.urlopen('ftp://ftp.python.org/pub/python/README').read()

           
         
  








Related examples in the same category

1.Split up a URL of the form http://www.something.com
2.URL joinURL join
3.URL SplitURL Split
4.URL unsplitURL unsplit
5.URL unsplit and splitURL unsplit and split
6.Open a URL and read a web page