untitled notebook

node v10.24.1
version: 1.0.0
endpointsharetweet
cheerio = require("cheerio") h = "<html><head></head><body onload=\"document.form1.submit()\"><form name=\"form1\" method=\"post\" action=\"\" ><input name=\"Token\" type=\"hidden\" value=\"\"><input name=\"ID\" type=\"hidden\" value=\"12120012732dafd4\"></form></body></html>" const $ = cheerio.load(h) console.log("h:", $("form input[name='ID']").attr("value"))
Loading…

no comments

    sign in to comment