code: def get_scraper(mod_path, scraper_type):
      
  
      # act of importing puts it into the registry
      try:
          module = importlib.import_module(mod_path)
      except ImportError as e:
          raise ScrapeError("could not import %s" % mod_path, e)
  
      # now find the class within the module
      ScraperClass = None
  
      for k, v in module.__dict__.items():
          if k.startswith('_'):
              continue
          if getattr(v, 'scraper_type', None) == scraper_type:
              if ScraperClass:
                  raise ScrapeError("two %s scrapers found in module %s: %s %s" %
                                    (scraper_type, mod_path, ScraperClass, k))
              ScraperClass = v
  
      if not ScraperClass:
          raise ScrapeError("no %s scraper found in module %s" % (
              scraper_type, mod_path))
  
      return ScraperClass
docs: import a scraper from the scraper registry