Skip to content

Instantly share code, notes, and snippets.

View edupsousa's full-sized avatar

Eduardo de Sousa edupsousa

View GitHub Profile
@edupsousa
edupsousa / extract_skills.js
Created April 19, 2024 15:25
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))