gpt4 book ai didi

flash - CutyCapt 不适用于闪光灯

转载 作者:行者123 更新时间:2023-12-02 05:17:32 24 4
gpt4 key购买 nike

我正在尝试使用 cutycapt 捕获一些包含 Adob​​e Flash 元素的网站,但没有成功。

我的 PHP 脚本:

$url=escapeshellarg($url);
$filename=escapeshellarg($filenamebase);
$format=escapeshellarg($format);
$useragent=escapeshellarg($useragent);

$cmd = "xvfb-run --server-args=\"-screen 0, ".$width."x".$height."x24\" CutyCapt --url=$url --out=$filename --out-format=$format --user-agent=$useragent --plugins=\"on\" --delay=5000 --javascript=$js";

exec($cmd);

例如,如果我想捕获 http://flashhry.cz/h/kingdom-rush我的脚本在 shell 中运行这个命令:

xvfb-run --server-args="-screen 0, 1024x5000x24" CutyCapt --url='http://sk.search.etargetnet.com/cookie.php?eURL=http%3A%2F%2Fflashhry.cz%2Fh%2Fkingdom-rush' --out='./screens/http_flashhry.cz_h_kingdom-rush.png' --out-format='png' --user-agent='Mozilla/5.0 (Windows NT 6.3; rv:36.0) Gecko/20100101 Firefox/36.0' --plugins="on" --delay=5000 --javascript=on

输出(http://prntscr.com/5pxc7e)没有闪光

命令标准输出是:

Xlib:  extension "RANDR" missing on display ":99".

没有错误输出。

我需要它在 CentOS 6 服务器上运行,但我的 Ubuntu 桌面有类似的结果。

最佳答案

试试这个作为引用实现:

https://github.com/jaequery/php-site-screenshot

请注意 Ubuntu 的安装脚本。它也可能让您了解 CentOS 的依赖关系。

https://github.com/jaequery/cutycapt-installer-script-on-ubuntu/blob/master/install

如果还是不行,估计是CentOS 6太旧,不能满足要求。

关于flash - CutyCapt 不适用于闪光灯,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27842154/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com