How can I take screenshots of webpages with Perl?

后端 未结 5 1973
梦谈多话
梦谈多话 2020-12-01 05:04

Is it possible to write a script in Perl that opens different URLs and saves a screenshot of each of them?

5条回答
  •  情歌与酒
    2020-12-01 05:30

    You could also use Win32::IE::Mechanize to render the web page using IE, and then Win32::Screenshot to capture the page. You'll probably have to do a bit of work to figure out where to take the screenshot, but that shouldn't be too incredibly hard.

    This will be a Windows platform only solution, of course, but may suffice.

提交回复
热议问题