Jump to content

Recommended Posts

Hi Folks,

 

 

I am trying to scrape the price data from a webpage, but how to get the variable,

 

see here the target http://www.buergerstiftungen.de/cps/rde/xchg/SID-635E10F9-BFA1A4BF/buergerstiftungen/hs.xsl/db.htm

 

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 ?

well how t o do it witout a regex but with DOM-Document!?

 

 

 

Link to comment
https://forums.phpfreaks.com/topic/237547-dom-document-need-help-to-apply-this/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.