Help with RSS Feed Amazon

Discussion in 'Black Hat SEO' started by Crows, Feb 7, 2010.

  1. Crows

    Crows Registered Member

    Joined:
    Jul 23, 2009
    Messages:
    55
    Likes Received:
    6
    Hi can anyone see any issues with this script to pull in RSS feed direct from amazon.....has the feed change as it displays nothing thanks

    ?php
    //// This shows Amazon Items based on your keyword. ////
    //// Powerup Xsitepro - Amazon Modual ////
    // This Should Be Edited. Replace XXXXXX with your amazon ID - example - blackbel-20

    $youramazoncampaignid = "amazon ID";
    //// DO NOT EDIT BELOW HERE //////
    $amazonword = str_replace("%20", " ", "{%KEYWORD1%}");

    $amazon = 'http://www.amazon.com/rss/tag/'.$amazonword.'/new?tag='.$youramazoncampaignid.'';

    function load_xml_feedamazon($location)
    {
    $feedXml = simplexml_load_file($location);


    foreach ($feedXml->channel->item as $article)
    {
    $title = (string)$article->title;
    $link = (string)$article->link;
    $description = (string)$article->description;
    global $amazonchange;
    $amazontitle = "$title";
    $amazondesc = "$description";
    $amazonchange = '<hr><p> <a href="'.$link.'">'.strip_tags($title).'</a></p><p>'.$description.'</p>';
    echo $amazonchange;

    }

    return $amazonchange;
    }

    load_xml_feedamazon($amazon);

    ?>