Skip to content

Commit

Permalink
Update scraper.php
Browse files Browse the repository at this point in the history
  • Loading branch information
vikash12345 committed Jan 24, 2018
1 parent d829c4a commit 60e25b4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scraper.php
Expand Up @@ -15,10 +15,11 @@
foreach($html->find("/html/body/div/div[2]/div[1]/div/div[2]/div[2]/div") as $element)
{
$name = $element->find("div/strong",0)->plaintext;

if($name != "" || $name != null) {
$record = array( 'name' =>$name, 'link' => $link);
scraperwiki::save(array('name','link'), $record);
}
}
}

}
Expand Down

0 comments on commit 60e25b4

Please sign in to comment.