Skip to content

Commit

Permalink
Update scraper.php
Browse files Browse the repository at this point in the history
  • Loading branch information
vikash12345 committed Sep 5, 2017
1 parent 973235d commit c08c81f
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions scraper.php
Expand Up @@ -18,9 +18,14 @@
$RowNumb += 1;
if ($RowNumb != 0) {
$Link = $element->find('./td[8]/a', 0)->href;
echo $DetailPg = file_get_html($Link);

$DetailPg = file_get_html($Link);
if($DetailPg)
{
echo $name = $DetailPg->find("//*[@id='tableinfo']/tbody/tr[2]/td[1]",0)->plaintext;
}






Expand Down

0 comments on commit c08c81f

Please sign in to comment.