Skip to content

Commit

Permalink
Update scraper.php
Browse files Browse the repository at this point in the history
  • Loading branch information
vikash12345 committed Aug 25, 2017
1 parent 87a4631 commit 6becc03
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scraper.php
Expand Up @@ -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;
Expand Down Expand Up @@ -38,7 +38,7 @@
'doc_univ' => (trim($info['doc_univ'])),
'permanent_address' => (trim($info['doc_address']))
));

echo $url;
//clean out the dom
$link2->__destruct();
}
Expand Down

0 comments on commit 6becc03

Please sign in to comment.