Login

    Register

Managed Hosting

PROJECT CATEGORIES

 

Link Scraper CFC
Project Home External Project Link Contact Project

Author: Joshua F. Rountree (All RIAForge projects by this author)
Last Updated: February 22, 2012 2:23 PM
Version: 1
Views: 8,505
Downloads: 467
License: Apache License, Version 2

Description:

Link Scraper / Open Graph Parser CFC
=============

This CFC uses the "jsoup" java component to parse Open Graph (OG / OpenGraph) meta tags, as well as general meta data such as images on page, title, description, keywords, etc.
Returns back a clean struct containing all of the parsed information.

USAGE / EXAMPLE
-------
The CFC assumes it's placed in the /lib/linkscraper in your webroot.

<cfscript>
IMPORT lib.linkscraper.LinkScraper;

scraper = new lib.linkscraper.LinkScraper("http://www.youtube.com/watch?v=1D6V2VZhCSA");
parsed = scraper.fetch();

writeDump(var='#parsed#',abort=true);
</cfscript>

Requirements:

Requires:

* Railo 3.2+ or ColdFusion 9

Depends on:

* JavaLoader CFC (included)
* Jsoup Library (it's included CFC download) (http://jsoup.org)