topical media & game development
mashup-delicious-11-autobookmarkers-ebay.php / php
<?php
//bring in Snoopy.class.php (from Magpie's extlib dir)
require_once('lib/extlib/Snoopy.class.inc');
argv[1]))
die("You need to specify something to search for as an argument!\n");
else
argv[1]);
//full query url
search_string;
full_api_url);
parse_xml_results(root_element_children = root_element_children as root_element_child['name'] == "SEARCH") {
root_element_child['children'];
foreach (search_item)
{
if(search_result_items = search_result_items as item_details = item_details as item_detail['name'] == "LINK")
item_detail['cdata'];
if (description = item_details);
//check to see if the url has already been posted
do_api_call('/posts/get?',"&url=".urlencode(api_return[0]['children']))
{
url)."&description=".urlencode(extended)."&tags=".urlencode(api_return['status'] == 200)
echo "Posted: ".description."\n";
} else {
echo url and url);
unset(
(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.