I'm using this script to scrape from an rss feed to view on another website:
$.ajax({
url: "http://www.thriveafricastore.com/rss.php?type=rss",
type: "GET",
success: function(d) {
$('item', d).each(function() {
var $item = $(this);
var title = $item.find('title').text();
var link = $item.find('link').text();
var description = $item.find('description').text();
var image = $(description).find('img').attr('src');
var price = $(description).find('span.SalePrice').text();
if (price == '') {price = 'See Price'};
var html = '<p><a href="'+link+'" target="_blank"><img src="'+image+'"/><br/>';
html += '<strong>'+title+'</strong><br />';
html += price+'</a></p>';
$('#store').append($(html));
});
}
});
It works locally on my computer but when I try and use it on the live site online it doesn't work and doesn't throw any errors (or at least none that I can find). Any ideas on what I could be doing wrong and how I can get it to work?
Thanks!