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 8, 2017
1 parent 39eada0 commit cd4a182
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scraper.php
Expand Up @@ -5,9 +5,12 @@
/** looping over list of ids of doctors **/
for($id = 1; $id <= 3; $id++)
{



$url = ("https://old.mciindia.org/ViewDetails.aspx?ID=".$id);
$link2 = file_get_html($url);
foreach($link2->find("//*[@id='form1']/div[3]/table/tbody/tr") as $link)
foreach($link2->find("//*[@id='form1']/div[3]/table/tbody") as $link)
{

// walk through the dom and extract doctor information
Expand Down

0 comments on commit cd4a182

Please sign in to comment.