Sourcecode for Meta detector

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.

  1. <?php
  2.  
  3. // Here's how to use it
  4.  
  5. // Create the instance
  6. $md = new Sabre_Web_MetaParser('http://www.example.org');
  7. // Execute and dump the results
  8. print_r($md->exec());
  9.  
  10. ?>

0 Responses to Sourcecode for Meta detector

  1. There are currently no comments.


About

My name is Evert, and I've been writing semi-regularly on this blog since 2006.

I'm currently available for contract work.

more info.

Subscribe

Dropbox

Dropbox is a simple cross-platform online backup and sync application. The first 2GB of space is free, and both you and me get an extra 250MB extra space if you sign up through this link.