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
var soap = require('soap'); | |
var fs = require('fs'); | |
var http = require('http'); | |
var url = 'https://e-beta.sunat.gob.pe/ol-ti-itcpfegem-beta/billService?wsdl'; | |
var options = { | |
forceSoap12Headers: false | |
}; | |
var data = fs.readFileSync("./20532710066-01-F001-1.zip",{ | |
encoding:"base64" |
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
"use strict"; | |
const request = require("request"); | |
const dv = require("dv"); | |
const async = require("async"); | |
const fs = require("fs"); | |
const cheerio = require("cheerio"); | |
const CAPTCHA_URL = "https://cel.reniec.gob.pe/valreg/codigo.do"; | |
const DATA_URL = "https://cel.reniec.gob.pe/valreg/valreg.do"; |
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
var request = require("request"); | |
var URL = "http://11.17.25.172:8090/intico/weurces/envioSMS/sms"; | |
request.post(URL , { | |
form : { | |
usuario : "value1" , | |
password : "value2" , | |
celular : "value3" , | |
mensaje : "value4" , | |
senderId : "value5" |
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
var request = require("request"); | |
var cheerio = require("cheerio"); | |
var TARGET = "http://www.votoinformado.pe/voto/miembro_mesa.aspx"; | |
function getPage(dni , callback) { | |
var data = { | |
"__EVENTTARGET" : "btnCongrDNI" , | |
"__EVENTARGUMENT" : "" , |
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
var cheerio = require("cheerio"); | |
var request = require("request"); | |
var STUDIO_EN_VIVO = "http://www.studio92.com/musiconair.php"; | |
function getOnAir( callback ) { | |
request.get({ url : STUDIO_EN_VIVO , timeout : 5000 } , function ( err , response , body ) { | |
if ( err ) { |
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
var request = require("request"); | |
var cheerio = require("cheerio"); | |
var URL_TARGET = "http://www.sbs.gob.pe/app/stats/tc-cv.asp"; | |
function parseDom( html , cb ) { | |
try { | |
var $ = cheerio.load(html); | |
var table = $("table.APLI_tabla").first().children("tr") | |
var data = table.map(function ( index ) { |
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
var request = require( "request" ); | |
var cheerio = require( "cheerio" ); | |
var async = require( "async" ); | |
var getHtml = function( word , callback ) { | |
var BASE_URL = "http://dle.rae.es/srv/search"; | |
request( { | |
uri : BASE_URL , | |
qs : { | |
w : word , |