From 6becc03c4ffc94326d6e13904811b2c7618058fa Mon Sep 17 00:00:00 2001 From: Vikash Harjeewan Date: Fri, 25 Aug 2017 09:55:09 +0500 Subject: [PATCH] Update scraper.php --- scraper.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scraper.php b/scraper.php index 5f0b214..67a59ca 100644 --- a/scraper.php +++ b/scraper.php @@ -8,7 +8,7 @@ $url = ("https://old.mciindia.org/ViewDetails.aspx?ID=".$id); $link2 = file_get_html($url); - echo $url; + // walk through the dom and extract doctor information $info['doc_name'] = $link2->find('span[id=Name]',0)->plaintext; $info['doc_fname'] = $link2->find('span[id="FatherName"]',0)->plaintext; @@ -38,7 +38,7 @@ 'doc_univ' => (trim($info['doc_univ'])), 'permanent_address' => (trim($info['doc_address'])) )); - + echo $url; //clean out the dom $link2->__destruct(); }