Last active
May 14, 2021 07:22
-
-
Save MachinesAreUs/c46c93a56c102f78d1b80bec531d3aa1 to your computer and use it in GitHub Desktop.
Script to retrieve Nobel Laureate names from Wikipedia
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
// 1. Go to https://en.wikipedia.org/wiki/Turing_Award | |
// 2. Open a JS console and... | |
// Number of laureates | |
$('.wikitable').children('tbody').children('tr:not(:first-child)').size() | |
// Their names | |
$('.wikitable').children('tbody').children('tr:not(:first-child)').each(function() { | |
console.log( $(this).children('td').first().text() ); | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment