Skip to content

Latest commit

 

History

History
37 lines (30 loc) · 1.16 KB

2006-06-20-77.md

File metadata and controls

37 lines (30 loc) · 1.16 KB
date layout slug title tags location geo
2006-06-20 03:20:50 UTC
post
77
Sourcecode for Meta detector
atom
rsd
autodiscovery
MetaDetector
rss
Hilversum, Netherlands
52.239453
5.174994

As promised, I will publish the code for the Meta detector.

You can use these classes to detect meta-information from a website, such as the title, rss feeds and blog api endpoints. I will probably add more features along the way, such as descriptions, keywords, dublin-core metadata and FOAF.

Here are some links:

The library requires the CURL extension to be installed. I will later on change the HTTP_Request class to allow fopen style and change it into a factory. The code is released under a BSD licence.

// Here's how to use it

// Create the instance
$md = new Sabre_Web_MetaParser('http://www.example.org');
// Execute and dump the results
print_r($md->exec());