I am trying to scrape the price data from a product on an amazon webpage, but I get more than just the price data in the variable, I get other elements included such as <span> etc. The code...
include 'simple_html_dom.php';
$html1 = file_get_html('http://www.amazon.co.uk/New-Apple-iPod-touch-Generation/dp/B0040GIZTI/ref=br_lf_m_1000333483_1_1_img?ie=UTF8&s=electronics&pf_rd_p=229345967&pf_rd_s=center-3&pf_rd_t=1401&pf_rd_i=1000333483&pf_rd_m=A3P5ROKL5A1OLE&pf_rd_r=1ZW9HJW2KN2C2MTRJH60');
$price_data1 = $html1->find('b[class=priceLarge]',0);
The variable then also contains data such as <b class="priceLarge">£163.00</b>
Is there a way to trim the unwanted data out ? I just need £163.00.
I am unsure if I do it during the find, or perhaps when i echo out the variable, then do I specify what I want ?
Cheers