The errors are due probably to legacy commands in the scripts. The first exemple works substituting the first instructions with
splash:set_viewport_size(800, 600)
splash:set_user_agent('Splash bot')
The second isn't working simply because of unsure javascript evaluation with splash:evaljs
not permitted under the site policy.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.