[英]get_meta_tags slow alternatives for batching
$tags = get_meta_tags('http://www.example.com/');
echo $tags['keywords'];
This code is really slow for a simple page and more for 50 or more. 对于一个简单的页面,此代码确实很慢,而对于50个或更多页面,此代码确实很慢。
Is there any alternative to reacieve and URL and get the meta tags in this way? 是否有其他方法可以代替reacieve和URL并以这种方式获取meta标签? Maybe in 2 steps or more
可能需要2个步骤或更多
Thanks 谢谢
Hello you can use curl for that. 您好,您可以使用curl。
getting meta tags info using curl and get_meta_tags() 使用curl和get_meta_tags()获取元标签信息
After you get the results cache them or save to dataBase for future use. 获取结果后,将其缓存或保存到数据库中以备将来使用。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.