scrape url with dd tags php

Pororboks

New Member
i have to scrape a url and get the price of an item.I'm trying simple php DOM, but there is something i'm doing wrong.This is a portion of the code where the price is:\[code\] <div class="Right"> <dl class="Price Offer" itemprop="offers" itemscope itemtype="http://schema.org/Offer"> <dt>Price:</dt> <dd itemprop="price">$49.99</dd> <link itemprop="availability" href="http://schema.org/InStock" content="In Stock"/> </dl> <dl class="Identifier"> <dt>Prod ID:</dt> <dd itemprop="productID">68947</dd> </dl> </div>\[/code\]I need to get the $49.99 and nothing else, but i'm really lost.i've tried using ->plaintext and then doing some explode or str_replace but it seems i'm doing something wrong.This is the url i'm trying to scrapeThanks!
 
Top