scrapinghub / splash

Lightweight, scriptable browser as a service with an HTTP API
BSD 3-Clause "New" or "Revised" License
4.08k stars 514 forks source link

Browser Not Supported problem #1147

Open ezedonovan opened 2 years ago

ezedonovan commented 2 years ago

Hi there, First, what a great tool this one. The whole conjunction with HAProxy and Docker works neat making it very easy to use.

I'm stumbling upon the following problem when using the built-in UI with the default Lua script:

function main(splash, args)
  assert(splash:go(args.url))
  assert(splash:wait(0.5))
  return {
    html = splash:html(),
    png = splash:png(),
    har = splash:har(),
  }
end

browser not supported

Some details of my docker-compose file:

image: scrapinghub/splash:3.5
command: --max-timeout 30 --slots 10 --maxrss 1200 --verbosity 2 --disable-private-mode

Any insight how could I solve this?

Let me know if you need further info. Thank you!

oktayozkan0 commented 1 year ago

use chromium instead of webkit which is default engine

abdosabry21 commented 11 months ago

use chromium instead of webkit which is default engine

how to do that

oktayozkan0 commented 11 months ago

use chromium instead of webkit which is default engine

how to do that

Just add engine argument to the HTTP API

curl 'http://localhost:8050/render.html?url=http://domain.com/page-with-javascript.html&timeout=10&wait=0.5&engine=chromium'