ScrapeGoat

ÜCRETSİZ
Taraf warting | Güncelleyen 1年前 | Tools
Popülerlik

7.2 / 10

Gecikme

20,646ms

Hizmet Düzeyi

44%

Tüm Tartışmalara Dön

500 Broken Error

R

Error: spawn EAGAIN
at errnoException (child_process.js:975:11)
at ChildProcess.spawn (child_process.js:922:11)
at Object.exports.spawn (child_process.js:710:9)
at spawnPhantom (/app/node_modules/node-phantom/node-phantom.js:28:22)
at Object.module.exports.create (/app/node_modules/node-phantom/node-phantom.js:60:3)
at crawlPage (/app/app.js:62:10)
at onRequest (/app/app.js:54:2)
at callbacks (/app/node_modules/express/lib/router/index.js:161:37)
at param (/app/node_modules/express/lib/router/index.js:135:11)
at pass (/app/node_modules/express/lib/router/index.js:142:5)

E
endless commented 7年前

We made some changes to the API and made one single endpoint that will let you control what kind of respons you want back
Please see this example for

(The demos heavily rely on ES6 fetch, template string and arrow function and may not work in all browser)

The special javascript command is

  • screenCapture() to take a screenshot of how the page currently look like and get back a Blob file (image/png)
  • respond.send(...) Can take anything the window.fetch api support as body (can be - Blob, FormData, string, json, arrayBuffer)
  • resizeTo(x, y) This exist natively in the browser but will help you take different responsive screenshots

This new api makes it possible to receive anything you throw in to respond.send() it can also work Async so you can use setTimeout, wait for any picture to load and so on.
Now you have more control over how long time it will take to pre-render

Aşağıya yorum ekleyerek tartışmaya katılın:

Yeni yorumlar göndermek için giriş yapın / kaydolun
Değerlendirme: 5 - Oy Sayısı: 1