============== 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
Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.
When asked, what has been your best career decision?
Deciding to stick with EE.
Being involved with EE helped me to grow personally and professionally.
Connect with Certified Experts to gain insight and support on specific technology challenges including:
We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE