Created
February 20, 2024 11:03
-
-
Save arlm/03c208e00035dcd0a955e4847cde4312 to your computer and use it in GitHub Desktop.
Better algorithm to find all tracks from exercism from the page: https://exercism.org/tracks
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
var links = ''; | |
[...Array.from(document.querySelectorAll('#page-tracks > div > div > section.lg-container.container > div > div.--tracks > div > a'), (a) => (/^https?:\/\/exercism\.org\/tracks\/((.*)$/g).exec(a.href)[1])]; | |
console.log(links); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment