Created
January 9, 2020 03:03
-
-
Save paulopatto/295b00f98db156c753b1cfd48bbb0dbb to your computer and use it in GitHub Desktop.
POISONS - Pequenos scripts usados por ai
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
/// 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