def _extract_links(self, response_or_htmlpage):
        """Extract links to follow from an html page

        This uses `iterlinks` to read the links in the page.
        """
        if isinstance(response_or_htmlpage, HtmlResponse):
            response_or_htmlpage = htmlpage_from_response(response_or_htmlpage)
        return iterlinks(response_or_htmlpage)
Extract links to follow from an html page

        This uses `iterlinks` to read the links in the page.
        
slybot/slybot/linkextractor/html.py