Just some stub code for you to retrieve digg results and write them to a db
Download diggexample now
Requires pear packages MDB2 and Services_Digg from pear.php.net. Note you'll need to set the preferred-state pear var to alpha to get Services_Digg. Or, just download the packages manually and put them in your include path.
Installation
Assuming you have pear:
- pear config-set preferred_state alpha
- pear install MDB2
- pear install Services_Digg
- tar -xzf diggexample-0.0.1.tgz
- cd diggexample-0.0.1
- mysql -u username -p < diggretrieve.sql test
- Change the settings in diggsource_common.php to match your db
Run with the command:
php diggretrieve.php
Have Fun!
Much more information here: http://apidoc.digg.com/ToolkitsServicesDigg