code: def scrape_links(self, text, context=False):
          '''Convenience function for scraping from a text string.'''
          return self.iter_processed_links(io.StringIO(text), context=contextf scrape_links(self, text, context=False):
          '''Convenience function for scraping from a text string.'''
          return self.iter_processed_links(io.StringIO(text), context=context)
docs: Convenience function for scraping from a text string.