简体   繁体   中英

Obtain website's description (meta) from ODP DMOZ.org using PHP

I am working on a php website. What I want to do is to retireve description or meta information of websites. What I hope to do is to obtain the information from dmoz.org, is there a way of doing such a thing?

If not, then what are other alternatives? cURL?

Many thanks,

EDIT:

Apparently my question wasn't clear. dmoz.org is open directory that gives you information about websites. The information given is different than the meta tags from the website itself. So what i want to do is getting such information..

PHP has a built-in function for extracting the meta information:

$tags = get_meta_tags('http://dmoz.org');
print_r($tags);
$tags = get_meta_tags('http://dmoz.org');
print_r($tags);

you can use Dmoz

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM