Home

Awesome

LinkedIn Profile to JSON Resume Browser Tool GitHub tag (latest SemVer)

An extremely easy-to-use browser extension for exporting your full LinkedIn Profile to a JSON Resume file or string.

Chrome Extension 📦 - Webstore Link

My LinkedIn Profile 👨‍💼 - linkedin.com/in/joshuatzucker/

Demo GIF

What is JSON Resume?

"JSON Resume" is an open-source standard / schema, currently gaining in adoption, that standardizes the content of a resume into a shared underlying structure that others can use in automated resume formatters, parsers, etc. Read more about it here, or on GitHub.

What is this tool?

I made this because I wanted a way to quickly generate a JSON Resume export from my LinkedIn profile, and got frustrated with how locked down the LinkedIn APIs are and how slow it is to request your data export (up to 72 hours). "Install" the tool to your browser, then click to run it while looking at a LinkedIn profile (preferably your own), and my code will grab the various pieces of information off the page and then show a popup with the full JSON resume export that you can copy and paste to wherever you would like.

A Note About Feature Requests and Bug Reports

I want to make something clear: the only goal of this extension is to be able to export a JSON Resume version of your LinkedIn profile; nothing more, nothing less.

If the tool is malfunctioning or could do a better job of exporting JSON Resume, by all means please open an issue - I always appreciate it!

However, I have gotten several feature requests (as both issues and emails) asking me to extend the tool to do things that are far outside this goal. While I appreciate the interest, ultimately I am not interested in having this project grow outside the original scope - you will usually see me close this issues as wontfix and will reply to emails the same way. I have limited time, and this project was originally something I whipped up in a few days for personal use - it has already gotten way out of scope 😅


Breaking Change - v1.0 Schema Update

The 10/31/2021 release of this extension (v3.0.0) changes the default shape of the JSON exported by this tool, to adhere to the newer v1 schema offered by JSON Resume:

<details> <summary>Previously</summary> </details> <details> <summary>Version 3.0.0</summary> </details>

Usage / Installation Options:

There are (or were) a few different options for how to use this:

Schema Versions

This tool supports multiple version of the JSON Resume Schema specification for export, which you can easily swap between in the dropdown selector! ✨

"Which schema version should I use?"

If you are unsure, you should probably just stick with "stable", which is the default. It should have the most widespread support across the largest number of platforms.

Support for Multilingual Profiles

LinkedIn has a unique feature that allows you to create different versions of your profile for different languages, rather than relying on limited translation of certain fields.

For example, if you are bilingual in both English and German, you could create one version of your profile for each language, and then viewers would automatically see the correct one depending on where they live and their language settings.

I've implemented support (starting with v1.0.0) for multilingual profile export through a dropdown selector:

Export Language Selector

The dropdown should automatically get populated with the languages that the profile you are currently viewing supports, in addition to your own preferred viewing language in the #1 spot. You should be able to switch between languages in the dropdown and click the export button to get a JSON Resume export with your selected language.

Note: LinkedIn offers language choices through a Locale string, which is a combination of country (ISO-3166) and language (ISO-639). I do not make decisions as to what languages are supported.

This feature is the part of this extension most likely to break in the future; LI has some serious quirks around multilingual profiles - see my notes for details.

Export Options

There are several main buttons in the browser extension, with different effects. You can hover over each button to see the alt text describing what they do, or read below:

vCard Limitations and Caveats

Chrome Side-loading Instructions

Instead of installing from the Chrome Webstore, you might might want to "side-load" a ZIP build for either local development, or to try out a new release that has not yet made it through the Chrome review process. Here are the instructions for doing so:

  1. Find the ZIP you want to load
    • If you want to side-load the latest version, you can download a ZIP from the releases tab
    • If you want to side-load a local build, use npm run package-browserext to create a ZIP
  2. Go to Chrome's extension setting page (chrome://extensions)
  3. Turn on developer mode (upper right toggle switch)
  4. Drag the downloaded zip to the browser to let it install
  5. Test it out, then uninstall

You can also unpack the ZIP and load it as "unpacked".

Troubleshooting

When in doubt, refresh the profile page before using this tool.

Troubleshooting - Debug Log

If I'm trying to assist you in solving an issue with this tool, I might have you share some debug info. Currently, the easiest way to do this is to use the Chrome developer's console:

  1. Append ?li2jr_debug=true to the end of the URL of the profile you are on
  2. Open Chrome dev tools, and specifically, the console (instructions)
  3. Run the extension (try to export the profile), and then look for red messages that show up in the console (these are errors, as opposed to warnings or info logs).
    • You can filter to just error messages, in the filter dropdown above the console.

Updates:

<details> <summary>Update History (Click to Show / Hide)</summary>
DateReleaseNotes
4/9/20223.2.3Fix: Incomplete work listings extraction (see #68)
12/24/20213.2.2Fix: Broken endpoints (see #63)
11/14/20213.2.1Fix: Some profiles missing full language proficiency extraction (see #59)<br/>Fix: Missing Education (regression) (see #60)
11/7/20213.2.0Improve/Fix: Include location in work positions (see #58)
11/7/20213.1.0Fix: Incorrect sorting of volunteer positions (see #55)<br/>Fix: Missing Certificates (see #59)<br/>Improve/Fix: Extract Language proficiencies / languages (see #59)<br/>Improve: Cleanup, README update
10/31/20213.0.0Breaking Update: This extension has now been updated to output JSON matching the v1 schema specification released by JSON Resume (see #53 and #56). If you still need the v0.0.16 schema output, it is no longer the default, but is still available for now under the "legacy" schema option. Thanks @ anthonyjdella for the PR and code contributions!<br/><br/>Fix: Also rolled into this release is a fix for truncated volunteer experiences (see #55). Thanks @ fkrauthan for the heads up!
2/27/20212.1.2Fix: Multiple issues around work history / experience; missing titles, ordering, etc. Overhauled approach to extracting work entries.
12/19/20202.1.1Fix: Ordering of work history with new API endpoint (#38)
12/7/20202.1.0Fix: Issue with multilingual profile, when exporting your own profile with a different locale than your profile's default. (#37)
11/12/20202.0.0Support for multiple schema versions ✨ (#34)
11/8/20201.5.1Fix: Omit partial BDAY export in vCard (#32)
10/22/20201.5.0Fix: Incorrect birthday month in exported vCards (off by one)<br>Fix: Better pattern for extracting profile ID from URL, fixes extracting from virtual sub-pages of profile (e.g. /detail/contact-info), or with query or hash strings at the end.
7/7/20201.4.2Fix: For work positions, if fetched via profilePositionGroups, LI ordering (the way it looks on your profile) was not being preserved.
7/31/20201.4.1Fix: In some cases, wrong profileUrnId was extracted from current profile, which led to work history API call being ran against a different profile (e.g. from "recommended section", or something like that).
7/21/20201.4.0Fix: For vCard exports, Previous profile was getting grabbed after SPA navigation between profiles.
7/6/20201.3.0Fix: Incomplete work position entries for some users; LI was limiting the amount of pre-fetched data. Had to implement request paging to fix.<br/><br/>Also refactored a lot of code, improved result caching, and other tweaks.
6/18/20201.2.0Fix / Improve VCard export feature.
6/5/20201.1.0New feature: vCard export, which you can import into Outlook / Google Contacts / etc.
5/31/20201.0.0Brought output up to par with "spec", integrated schemas as TS, added support for multilingual profiles, overhauled JSDoc types.<br><br>Definitely a breaking change, since the output has changed to mirror schema more closely (biggest change is website in several spots has become url)
5/9/20200.0.9Fixed "references", added certificates (behind setting), and formatting tweaks
4/4/20200.0.8Added version string display to popup
4/4/20200.0.7Fixed and improved contact info collection (phone, Twitter, and email). Miscellaneous other tweaks.
10/22/20190.0.6Updated recommendation querySelector after LI changed DOM. Thanks again, @ lucbpz.
10/19/20190.0.5Updated LI date parser to produce date string compliant with JSONResume Schema (padded). Thanks @ lucbpz.
9/12/20190.0.4Updated Chrome webstore stuff to avoid LI IP usage (Google took down extension page due to complaint). Updated actual scraper code to grab full list of skills vs just highlighted.
8/3/2019NARewrote this tool as a browser extension instead of a bookmarklet to get around the CSP issue. Seems to work great!
7/22/2019NAALERT: This bookmarklet is currently broken, thanks to LinkedIn adding a new restrictive CSP (Content Security Policy) header to the site. I've opened an issue to discuss this, and both short-term (requires using the console) and long-term (browser extension) solutions.
6/21/20190.0.3I saw the bookmarklet was broken depending on how you came to the profile page, so I refactored a bunch of code and found a much better way to pull the data. Should be much more reliable!
</details>

Development

With the rewrite to a browser extension, I actually configured the build scripts to be able to still create a bookmarklet from the same codebase, in case the bookmarklet ever becomes a viable option again.

Building the browser extension

npm run build-browserext will transpile and copy all the right files to ./build-browserext, which you can then side-load into your browser. If you want to produce a single ZIP archive for the extension, npm run package-browserext will do that.

Use build-browserext-debug for a source-map debug version. To get more console output, append li2jr_debug=true to the query string of the LI profile you are using the tool with.

Building the bookmarklet version

Currently, the build process looks like this:

All of the above should happen automatically when you do npm run build-bookmarklet.

If this ever garners enough interest and needs to be updated, I will probably want to re-write it with TypeScript to make it more maintainable.

LinkedIn Documentation

For understanding some peculiarities of the LI API, see LinkedIn-Dev-Notes-README.md.

Debugging

Debugging the extension is a little cumbersome, because of the way Chrome sandboxes extension scripts and how code has to be injected. An alternative to setting breakpoints in the extension code itself, is to copy the output of /build/main.js and run it via the console.

li2jr = new LinkedinToResumeJson(true, true);
li2jr.parseAndShowOutput();

Even if you have the repo inside of a local static server, you can't inject it via a script tag or fetch & eval, due to LI's restrictive CSP.

If you do want to find the actual injected code of the extension in Chrome dev tools, you should be able to find it under Sources -> Content Scripts -> top -> JSON Resume Exporter -> {main.js}

Debugging Snippets

Helpful snippets (subject to change; these rely heavily on internals):

// Get main profileDB (after running extension)
var profileRes = await liToJrInstance.getParsedProfile(true);
var profileDb = await liToJrInstance.internals.buildDbFromLiSchema(profileRes.liResponse);

DISCLAIMER:

This tool is not affiliated with LinkedIn in any manner. Intended use is to export your own profile data, and you, as the user, are responsible for using it within the terms and services set out by LinkedIn. I am not responsible for any misuse, or repercussions of said misuse.

Attribution:

Icon for browser extension: