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 10, 2017
1 parent 6922aaa commit 42368ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scraper.php
Expand Up @@ -34,7 +34,7 @@
$html = file_get_html($NewLink);
foreach($html->find("/html/body/div/table/tbody/tr[1]/td/form/table/tbody/tr[7]/td/table/tbody") as $element)
{
if($element)
if(is_object($element))
{
$reg_no = $element->find("tr/td[2]/font" ,1)->plaintext;
$reg_date = $element->find("tr/td[2]/font" ,2)->plaintext;
Expand Down

0 comments on commit 42368ad

Please sign in to comment.