""" Description: prints a list of all links in a webpage URL:http://sebsauvage.net/index.html License: Unspecified/Public Domain """ import re, urllib htmlSource = urllib.urlopen("http://sebsauvage.net/index.html").read(200000) linksList = re.findall('.*?',htmlSource) for link in linksList: print link