Created
July 1, 2013 19:55
-
-
Save rodrigoalvesvieira/5903986 to your computer and use it in GitHub Desktop.
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
// 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