Skip to content

Instantly share code, notes, and snippets.

@rodrigoalvesvieira
Created July 1, 2013 19:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rodrigoalvesvieira/5903986 to your computer and use it in GitHub Desktop.
Save rodrigoalvesvieira/5903986 to your computer and use it in GitHub Desktop.
// a jquery script to fetch all acronyms from political parties in Brazil from the following url
// http://pt.wikipedia.org/wiki/Anexo:Lista_de_partidos_pol%C3%ADticos_no_Brasil
// July 1, 2013
var base = 1;
var count = 29;
var total = "";
while (count > 0) {
total += $(".wikitable.sortable.jquery-tablesorter tbody tr td").eq(base).text();
total += ", ";
count--;
base += 7;
}
total = total.substring(0, total.length - 2);
console.log(total);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment