Skip to content

Instantly share code, notes, and snippets.

@edupsousa
Created April 19, 2024 15:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save edupsousa/a1e2d90b62c7f8a5574cf44463578f25 to your computer and use it in GitHub Desktop.
Save edupsousa/a1e2d90b62c7f8a5574cf44463578f25 to your computer and use it in GitHub Desktop.
Extract skills list from GitHub skills page
// Visit: https://www.linkedin.com/in/edupsousa/details/skills/ (change edupsousa by your username)
// Open the Chrome DevTools console and use the code below
let els = [...document.querySelectorAll('a[data-field="skill_page_skill_topic"]')];
let skills = [...new Set(els.flatMap(el => el.href.split('?')[1].split('&').map(v => v.split('=')).filter(v => v[0] === 'keywords').flat()).filter(v => v !== 'keywords').map(decodeURIComponent).map(v => v.replaceAll('+',' ')))].sort();
console.log(JSON.stringify(skills))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment