This file contains 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
// Capture id of the icons of https://icons8.com/ from a particular page or categories | |
// Code to run in chrome console | |
const ids = []; | |
document.querySelectorAll('a.icon-link').forEach((element) => { | |
const href = element.attributes.href.value | |
const [, id] = href.match(/\/([\d]+)\//); | |
ids.push[id]; | |
}); | |
// to copy array of ids in your system (in chrome console) |