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.buergerstiftungen.de/cps/rde/xchg/SID-635E10F9-BFA1A4BF/buergerstiftungen/hs.xsl/db.htm');
$info1 = $html1->find('b[class=[what to enter herer ]',0);
The variable then also contains data such as
<b class="info"> info </b>
Is there a way to trim the unwanted data out ? I just need all the infos out of the site. 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 ?
Seems to be written in the documentation:
$html1->find('b[class=info]',0)->innertext;