Website screenshots

前端 未结 26 3911
长发绾君心
长发绾君心 2020-11-21 06:07

Is there any way of taking a screenshot of a website in PHP, then saving it to a file?

26条回答
  •  抹茶落季
    2020-11-21 06:54

    It's in Python, but going over the documentation and code you can see exactly how this is done. If you can run python, then it's a ready-made solution for you:

    http://browsershots.org/

    Note that everything can run on one machine for one platform, or one machine with virtual machines running the other platforms.

    Free, open source, scroll to bottom of page for links to documentation, source code, and other information.

提交回复
热议问题