Skip to content

Instantly share code, notes, and snippets.

@paulopatto
Created January 9, 2020 03:03
Show Gist options
  • Save paulopatto/295b00f98db156c753b1cfd48bbb0dbb to your computer and use it in GitHub Desktop.
Save paulopatto/295b00f98db156c753b1cfd48bbb0dbb to your computer and use it in GitHub Desktop.
POISONS - Pequenos scripts usados por ai
/// Script para extraçao de dados de multas do sistema ParcelaNaHora.com.br em 09/01/2020
// https://www.parcelenahora.com.br/Pagamento.aspx?uf=detran-sp&placa=#{placa}&inscricaoImovel=&renavam=#{renavan}&cpf=&telefone=%2811%29+#{mobile_number_without_ddd}&Email=paulopatto%40maildrop.cc
csv = []
$('div.js_debitos_faturas div.boxdebito').each( function(index, element){
valor = $(element).find('div.boxdebito_numero').text().trim();
reason = $(element).find('div.boxdebito_dados span').text().trim();
valid = $(element).find('div.boxdebito_dados table tr td:first div.boxdebito_dados_txtpequeno_data').text().trim()
until = $(element).find('div.boxdebito_dados table tr td:last div.boxdebito_dados_txtpequeno_data').text().trim()
csv.push(""+label + ";" + valor + ";" + valid + ";" + until+"\n");
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment