import urllib print urllib.urlopen('http://python.org/ftp/').readlines()