I know about using /execute
endpoint and passing LUA script to it which will load the page and scroll it via executing JavaScript code. However, this is "one and off" type of action, where I have no fine control about how or when to scroll the page within my Python program.
In other words, once Splash loads the page, additional actions on that page (e.g. executing JavaScript code) cannot be performed. I'd like to be able to interact with current page session within my Python program, Selenium-style. Is this possible in Splash, and how?
Alternative is to subclass QWebEnginePage
and build a browser on top of it, but this is a whole new world of work which I'd like to avoid if possible.
from Splash and infinite scrolling
No comments:
Post a Comment