如何从PHP脚本生成的Web中检索图像

时间:2015-06-15 18:43:54

标签: php python image captcha

基本上我想以编程方式从projecteuler.net网站检索由PHP脚本生成的图像(验证码),以实现自动化目的。

enter image description here

我该怎么做?

以下是来自html源代码的代码

<img src="captcha/show_captcha.php" id="captcha_image" onclick="javascript:this.src='captcha/show_captcha.php?'+Math.random();" style="border:1px solid #999;" /><br />Click image for new code

1 个答案:

答案 0 :(得分:0)

假设您想在PHP中以编程方式执行此操作:使用简单的Web蜘蛛工具(例如http://www.sphider.eu/)或任何其他方法来访问DOM并以此方式获取图像。 这是一篇提供可能符合您账单的解决方案的帖子: https://www.daniweb.com/web-development/php/threads/340460/php-image-crawlerspider

相关问题