Created
April 19, 2024 15:25
-
-
Save edupsousa/a1e2d90b62c7f8a5574cf44463578f25 to your computer and use it in GitHub Desktop.
Extract skills list from GitHub skills page
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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