Skip to content

Instantly share code, notes, and snippets.

@Rebolon
Created November 25, 2015 11:10
Show Gist options
  • Save Rebolon/1ccbf937687d780a9a4f to your computer and use it in GitHub Desktop.
Save Rebolon/1ccbf937687d780a9a4f to your computer and use it in GitHub Desktop.
// public data from a linkedin profile
{
"name": $('#topcard #name').innerHTML,
"jobTitle": $('#topcard .title').innerHTML,
"photo": $('#topcard .profile-picture img').getAttribute('src'),
"sumup": $('#summary .description').innerHTML.split("<br>").implode("\
"),
"experience": [
{// loop over $('#experience ul li')
"title": $(el).find('header h4').innerHTML,
"company": $(el).find('header h5').innerHTML,
"date-range": {
"start": $(el).find('.date-range time[0]').innerHTML,
"end": ($(el).find('.date-range time').length > 1) ? $(el).find('.date-range time[1]') : 'current'
},
"location": $(el).find('.location').innerHTML,
"description": if ($(el).find('.description')) $(el).find('.description').innerHTML.split("<br>").implode("\
")
}
],
"volunteering": [
{// loop over $('#volunteering ul li')
"title": $(el).find('header h4').innerHTML,
"sub-title": $(el).find('header h5').innerHTML,
"date-range": {
"start": $(el).find('.date-range time[0]').innerHTML,
"end": ($(el).find('.date-range time').length > 1) ? $(el).find('.date-range time[1]') : 'current'
},
"cause": $(el).find('.cause').innerHTML,
"description": if ($(el).find('.description')) $(el).find('.description').innerHTML.split("<br>").implode("\
")
}
],
"publications": [
{// loop over $('#publications ul li')
"title": $(el).find('header h4 a').innerHTML,
"link": $(el).find('header h4 a').getAttribute('href'),
"sub-title": $(el).find('header h5').innerHTML,
"date-range": {
"start": $(el).find('.date-range time[0]').innerHTML,
"end": ($(el).find('.date-range time').length > 1) ? $(el).find('.date-range time[1]') : undefined
},
"description": if ($(el).find('.description')) $(el).find('.description').innerHTML.split("<br>").implode("\
")
}
],
"projects": [
{// loop over $('#projects ul li')
"title": ($(el).find('header h4 a')) ? $(el).find('header h4 a').innerHTML : $(el).find('header h4'),
"link": ($(el).find('header h4 a')) ? $(el).find('header h4 a').getAttribute('href') : undefined,
"sub-title": $(el).find('header h5').innerHTML,
"date-range": {
"start": $(el).find('.date-range time[0]').innerHTML,
"end": ($(el).find('.date-range time').length > 1) ? $(el).find('.date-range time[1]') : undefined
}
"cause": $(el).find('.cause').innerHTML,
"description": if ($(el).find('.description')) $(el).find('.description').innerHTML.split("<br>").implode("\
")
}
],
"languages": [
{// loop over $('#languages ul li')
"name": $(el).find('h4'),
"proficiency": $(el).find('.proficiency').innerHTML
}
],
"skills": [
{// loop over $('#skills ul li')
"skill": $(el).find('a span'),
"sourceInfos": $(el).find('a').getAttribute('href')
}
],
"schools": [//unavailable in pubic mode]
}
@Rebolon
Copy link
Author

Rebolon commented Oct 19, 2017

deprecated since new linkedin version in 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment