How to scan a page using curl after the browser interpretation How to scan a page using curl after the browser interpretation curl curl

How to scan a page using curl after the browser interpretation


You could try something like ScrapeGoat that will actually render the website in a browser and injects javascript that you use to respond back with.

There is some jsfiddle example here

var fd = {    url: prompt("url", "http://"),    inject: `      var body = document.querySelector("body").innerText;      response.send(body);    `}fetch("https://scrapegoat.p.mashape.com/", {  method: 'POST',  body: JSON.stringify(fd),  headers: {    "Content-Type": "application/json",    "X-Mashape-Key": "dFYPWXxpp3mshKD6Kimb4pVfvYLvp1YWcWfjsnErOY3HN8zs4a"  }}).then(res => res.text()).then(text => {  document.body.style.whiteSpace = "pre"  document.body.innerText = text})