The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.
============== RESTART: /Users/rjw/Documents/Python/getLinks.py ============== <_sre.SRE_Match object at 0x1021a0f30>
# http://www.theherbsplacenews.com/ import urllib2 import re #connect to a URL website = urllib2.urlopen('http://www.theherbsplacenews.com/') #read html code html = website.read() #use re.findall to get all the links # links = re.findall('"(http://www.theherbsplace.com/.*?)"', html) prog = re.compile('"http://www\.theherbsplace\.com/(.*?)?"') result = prog.match('"http://www.theherbsplace.com/\1" rel="nofollow"') print result
Join the community of 500,000 technology professionals and ask your questions.
Connect with top rated Experts
9 Experts available now in Live!