Examples of valid payloads:
- JSON payload:
{\"fefe\":\"few\"}
- www-encoded payload:
key1=val1&key2=val2
Content-Type: application/x-www-form-urlencoded
to headers in case of www-encoded POST and Content-Type: application/json
Raw ScrapeNinja Response:
Latency: {{ responseLatency }}ms HTTP Status: {{ responseBody.info.statusCode }}{{ responseBodyFormatted }}
Unescaped target website response
responseJson.body
property.
Use {{cmdKey}}+F for a quick search in the response body.
Generated code for ScrapeNinja:
Launching the scraper in your local Node.js:
node -v
Step #1. Create project folder and install node-fetch
mkdir your-project-folder && \ cd "$_" && \ npm i -g create-esnext && \ npm init esnext && \ npm i node-fetch -y
Step #2. Copy&paste the code above
Create new empty file like scraper.js
and paste the code to this file.
Step #3. Launch
node ./scraper.js