Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Splash does not render the full page of a site #1162

Open
williamlam3611 opened this issue Oct 4, 2022 · 1 comment
Open

Splash does not render the full page of a site #1162

williamlam3611 opened this issue Oct 4, 2022 · 1 comment

Comments

@williamlam3611
Copy link

williamlam3611 commented Oct 4, 2022

Hi, I am trying to crawl this site using splash:
https://www.lithia.com/new-inventory/index.htm

In Splash Web UI, I got this:
www lithia com (2)

The page is not rendered completely, can someone help plz?

My Lua code:

function main(splash)
local url = splash.args.url
assert(splash:go(url))
splash.private_mode_enabled = false
splash.plugins_enabled = true
splash.indexeddb_enabled = true
splash.plugins_enabled = true
splash:set_viewport_full()
time = 10
ok = nil
while (ok == nil) do
ok, reason = splash:wait{time, cancel_on_redirect=true, cancel_on_error=true}
end
return {
html = splash:html(),
png = splash:png(),
har = splash:har(),
}
end

@hustjiangtao
Copy link

Set a specific viewport value (like: viewport=1920x1080) instead of using full

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants