3

I have extracted whole body content by using this code. But I don't know have to Remove navigation bar, footer, side bar, breadcrumb. Can anyone suggest me how to get this done?

foreach($dom->getElementsByTagName("body")->item(0)->childNodes as $child) {
$bodycontent .= $dom->saveHTML($child); }
Manoj Kumar K
  • 73
  • 1
  • 2
  • 10

1 Answers1

-1

You could use something like readability, which is implemented in many languages:

ospider
  • 9,334
  • 3
  • 46
  • 46