parameters: (provider_id)
return_statement: return extractor
docstring: Get the relevant profile extractor instance for the provider
  
      Retrieve the data extractor instance to use for getting profile
      information from social account providers.
docstring_summary: Get the relevant profile extractor instance for the provider
docstring_tokens: Get the relevant profile extractor instance for the provider
function: def get_data_extractor(provider_id):
      """Get the relevant profile extractor instance for the provider
  
      Retrieve the data extractor instance to use for getting profile
      information from social account providers.
  
      """
  
      extractors = getattr(settings, "SOCIALACCOUNT_PROFILE_EXTRACTORS", {})
      extractor_path = extractors.get(provider_id)
      if extractor_path is not None:
          extractor_class = import_string(extractor_path)
          extractor = extractor_class()
      else:
          extractor = None
      return extractor
function_tokens: def get_data_extractor ( provider_id ) : extractors = getattr ( settings , "SOCIALACCOUNT_PROFILE_EXTRACTORS" , { } ) extractor_path = extractors . get ( provider_id ) if extractor_path is not None : extractor_class = import_string ( extractor_path ) extractor = extractor_class ( ) else : extractor = None return extractor