Skip to content

Instantly share code, notes, and snippets.

@MachinesAreUs
Last active May 14, 2021 07:22
Show Gist options
  • Save MachinesAreUs/c46c93a56c102f78d1b80bec531d3aa1 to your computer and use it in GitHub Desktop.
Save MachinesAreUs/c46c93a56c102f78d1b80bec531d3aa1 to your computer and use it in GitHub Desktop.
Script to retrieve Nobel Laureate names from Wikipedia
// 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