(provider_id)
return extractor
Get the relevant profile extractor instance for the provider

    Retrieve the data extractor instance to use for getting profile
    information from social account providers.
Get the relevant profile extractor instance for the provider
Get the relevant profile extractor instance for the provider
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
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