topical media & game development
mashup-delicious-11-autobookmarkers-hotjobs.php / php
<?php
//bring in magpie goodness
require_once('lib/rss_fetch.inc');
//set cache directory
define('MAGPIE_CACHE_DIR', 'cache');
//get rid of error Notices because magpie produces some
error_reporting(E_ERROR | E_WARNING | E_PARSE);
//delicious mashups libarary - set your username and password please!
define('DELICIOUS_USERNAME','username');
define('DELICIOUS_PASSWORD','password');
//bring in delicious_mashups.inc.php
require_once('lib/delicious_mashups.inc.php');
//base hotjobs url
define('HOTJOBS_URL','http://hotjobs.yahoo.com/rss/0/');
//your slacker friend's username on del.icio.us
define('SLACKER_FRIEND','friendsusername');
//enter a - (dash) for unused elements
state = 'CO';
category = 'RFS';
feed_url = HOTJOBS_URL.state."/".category."/".rss = fetch_rss(feed_url."\n";
//post the items found if they don't exist
//tagging them with for:SLACKER_FRIEND
foreach (item)
{
//check to see if the url has already been posted
do_api_call('/posts/get?',"&url=".urlencode(api_return[0]['children']))
{
item['link'];
item['title'];
item['description'];
url)."&description=".urlencode(extended)."&tags=".urlencode(api_return['status'] == 200)
echo "Posted: ".description."\n";
} else {
echo
(C) Æliens
20/2/2008
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.