Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save shprink/4c20ecdfbb6db714368d to your computer and use it in GitHub Desktop.
Save shprink/4c20ecdfbb6db714368d to your computer and use it in GitHub Desktop.
// http://www.geonames.org/BD/largest-cities-in-bangladesh.html
var cities = []; [].forEach.call(document.querySelectorAll('table.restable a:not([rel=nofollow])'), function(el){console.log(el.innerText); if (el.innerText) cities.push(el.innerText)}); console.log(cities.join(','))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment