From 5ae33f2e1c5d598bc75b0b3f4cbb38ddfc51ea7b Mon Sep 17 00:00:00 2001 From: OmairXcluesiv Date: Fri, 3 Feb 2017 12:30:16 +0500 Subject: [PATCH] Update scraper.php --- scraper.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/scraper.php b/scraper.php index 87fec18..b774319 100644 --- a/scraper.php +++ b/scraper.php @@ -1,4 +1,14 @@ loadHTML($html); +$finder = new DomXPath($DOM); +$classname = 'lvtitle'; +$nodes = $finder->query("//*[contains(@class, '$classname')]"); +foreach ($nodes as $node) { + echo $node->nodeValue; +} // This is a template for a PHP scraper on morph.io (https://morph.io) // including some code snippets below that you should find helpful