This should return the technical details for any amazon page I enter..
This is the html from the site, why isnt it returning anything?
PHP:
$ch = curl_init($page);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 10);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 5);
curl_exec($ch);
$data = curl_exec($ch);
//scrape technical details
$regex = '/id="technical_details"><\/a>(.+?)<div id="technicalProductFeatures/';
preg_match($regex, $data, $match);
$techdetails = $match[1];
ECHO "$techdetails";
Code:
<a name="technical_details" id="technical_details"></a><h2>Technical Details</h2>
<div class="content">
<ul style="list-style: disc; padding-left: 25px;">
<li>Now the world's most popular music player lets you enjoy up to 5 hours of TV shows, movies, video podcasts, and more</li>
<li>An enhanced interface offers a whole new way to browse and view your music and video</li>
<li>iPod nano sports a larger, 320-by-240-resolution display that's 65 percent brighter than before</li>
<li>In anodized aluminum and polished stainless steel, iPod nano is now 6.5 mm thin and even more beautiful</li>
<li>Measures 2.75 x 2.06 x 0.26 inches (H x W x D), weighs 1.74 ounces</li>
</ul>
<div id="technicalProductFeatures"></div>
<span class="caretnext">›</span>
<a href="http://www.amazon.com/Apple-iPod-nano-GB-Silver/dp/tech-data/B000JO7PIM/ref=de_a_smtd">See more technical details</a>
</div>