Reads pinterest feed, then parses pin HTML page and saves data into database, which can be used with PinterestPin model later.
-
Install this plugin for your CakePHP app.
AssumingAPP
is the directory where your CakePHP app resides, it's usuallyapp/
from the base of CakePHP.cd APP/Plugin git clone git://github.com/LubosRemplik/CakePHP-Pinterest-Plugin.git Pinterest
-
Load plugin in APP/Config/bootstrap.php
CakePlugin::load('Pinterest')
-
Use the console with your pinterest rss feed
Console/cake Pinterest.pinterest parseRss http://pinterest.com/onidle/feed.rss
-
Include PinterestPin model wherever you need and get the data from DB
$data = ClassRegistry::init('Pinterest.PinterestPin')->find('all'); debug($data);