Can anyone figure out why this will double the first result in the array?
It does it no matter what page I run it on.
$html = file_get_html('http://www.amazon.com/gp/offer-listing/B001KXB7V2/');
if($article->find('span.price', 0)) {
// get retail
$item['Retail'] = $article->find('span.price', 0)->plaintext;
// get soldby
if($article->find('img', 0))
$item['SoldBy'] = $article->find('img', 0)->getAttribute('alt');
$ret[] = $item;
}
Hi! You are picking up the price that is in the “box” labeled “Price at a glance” as well as the normal prices listed with the seller information.
Try this: