============== 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
Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.
”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.
Our community of experts have been thoroughly vetted for their expertise and industry experience.