开发者

Open URL in browser and take image snapshot in an automated fashion

开发者 https://www.devze.com 2023-03-08 02:59 出处:网络
I was wondering if there was any way we could programmatically fire up an URL in a browser (i.e. firefox or google chrome), and take a snapshot of the webpage.

I was wondering if there was any way we could programmatically fire up an URL in a browser (i.e. firefox or google chrome), and take a snapshot of the webpage.

It would be awesome if this can be done in Linux environment. I do not have any lead on how to go about it; I can going to mark this in C# too - I开发者_C百科'm willing to settle for Windows based approach also


I think wkhtmltopdf will pretty much do what you're looking for. It uses WebKit, the Chrome/Safari engine)

the wkhtmltoimage executable will take a URL and file save location arguments.

Windows/Linux/MacOS flavors.

0

精彩评论

暂无评论...
验证码 换一张
取 消