def get_profile(self, public_id=None, urn_id=None):
    '\n        Return data for a single profile.\n\n        [public_id] - public identifier i.e. tom-quirk-1928345\n        [urn_id] - id provided by the related URN\n        '
    sleep(random.randint(2, 5))
    res = self.client.session.get(f'{self.client.API_BASE_URL}/identity/profiles/{(public_id or urn_id)}/profileView')
    data = res.json()
    if (data and ('status' in data) and (data['status'] != 200)):
        self.logger.info('request failed: {}'.format(data['message']))
        return {}
    profile = data['profile']
    if ('miniProfile' in profile):
        if ('picture' in profile['miniProfile']):
            profile['displayPictureUrl'] = profile['miniProfile']['picture']['com.linkedin.common.VectorImage']['rootUrl']
        profile['profile_id'] = get_id_from_urn(profile['miniProfile']['entityUrn'])
        del profile['miniProfile']
    del profile['defaultLocale']
    del profile['supportedLocales']
    del profile['versionTag']
    del profile['showEducationOnProfileTopCard']
    experience = data['positionView']['elements']
    for item in experience:
        if (('company' in item) and ('miniCompany' in item['company'])):
            if ('logo' in item['company']['miniCompany']):
                logo = item['company']['miniCompany']['logo'].get('com.linkedin.common.VectorImage')
                if logo:
                    item['companyLogoUrl'] = logo['rootUrl']
            del item['company']['miniCompany']
    profile['experience'] = experience
    skills = [item['name'] for item in data['skillView']['elements']]
    profile['skills'] = skills
    education = data['educationView']['elements']
    for item in education:
        if ('school' in item):
            if ('logo' in item['school']):
                item['school']['logoUrl'] = item['school']['logo']['com.linkedin.common.VectorImage']['rootUrl']
                del item['school']['logo']
    profile['education'] = education
    return profile
Return data for a single profile.

[public_id] - public identifier i.e. tom-quirk-1928345
[urn_id] - id provided by the related URN
def get_profile(self, public_id=None, urn_id=None):
    '\n        Return data for a single profile.\n\n        [public_id] - public identifier i.e. tom-quirk-1928345\n        [urn_id] - id provided by the related URN\n        '
    sleep(random.randint(2, 5))
    res = self.client.session.get(f'{self.client.API_BASE_URL}/identity/profiles/{(public_id or urn_id)}/profileView')
    data = res.json()
    if (data and ('status' in data) and (data['status'] != 200)):
        self.logger.info('request failed: {}'.format(data['message']))
        return {}
    profile = data['profile']
    if ('miniProfile' in profile):
        if ('picture' in profile['miniProfile']):
            profile['displayPictureUrl'] = profile['miniProfile']['picture']['com.linkedin.common.VectorImage']['rootUrl']
        profile['profile_id'] = get_id_from_urn(profile['miniProfile']['entityUrn'])
        del profile['miniProfile']
    del profile['defaultLocale']
    del profile['supportedLocales']
    del profile['versionTag']
    del profile['showEducationOnProfileTopCard']
    experience = data['positionView']['elements']
    for item in experience:
        if (('company' in item) and ('miniCompany' in item['company'])):
            if ('logo' in item['company']['miniCompany']):
                logo = item['company']['miniCompany']['logo'].get('com.linkedin.common.VectorImage')
                if logo:
                    item['companyLogoUrl'] = logo['rootUrl']
            del item['company']['miniCompany']
    profile['experience'] = experience
    skills = [item['name'] for item in data['skillView']['elements']]
    profile['skills'] = skills
    education = data['educationView']['elements']
    for item in education:
        if ('school' in item):
            if ('logo' in item['school']):
                item['school']['logoUrl'] = item['school']['logo']['com.linkedin.common.VectorImage']['rootUrl']
                del item['school']['logo']
    profile['education'] = education
    return profile