def extract_links(self, selector):
		try:
			links = self.tree.xpath(selector)
			for link in links:
				next_url = urljoin(self.url, link.get('href'))
				yield XpathSelector(next_url)
		except XPathError:
			raise Exception("Invalid XPath selector " + selector)
Method for performing the link extraction for the crawler.
dataset/ETHPy150Open AlexMathew/scrapple/scrapple/selectors/xpath.py/XpathSelector.extract_links