Created
July 17, 2013 17:18
-
-
Save pmarkun/6022547 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
pjs.addSuite({ | |
url: 'http://e-negocioscidadesp.prefeitura.sp.gov.br/ResultadoBusca.aspx#pRWfkdDwWjM%3d', | |
moreUrls: 'a:contains("Próximo >")', | |
scraper: function() { | |
var lista = []; | |
console.log($('a:contains("Próximo >")')); | |
$("#ctl00_cphConteudo_gdvResultadoBusca_gdvContent tr").each(function (index, data) { | |
soup = $(data).find("td"); | |
var licitacao = { | |
"publicacao" : $(soup[0]).text(), | |
"licitacao" : $(soup[1]).text(), | |
"modalidade" : $(soup[2]).text(), | |
"dt_abertura" : $(soup[3]).text(), | |
"objeto" : $(soup[4]).text() | |
}; | |
//console.log(licitacao); | |
lista.push(licitacao); | |
}); | |
return lista; // variable set by Wikipedia | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment