Skip to content

Commit

Permalink
Update scraper.php
Browse files Browse the repository at this point in the history
  • Loading branch information
vikash12345 committed Feb 9, 2018
1 parent f81fb65 commit 24aa786
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions scraper.php
Expand Up @@ -13,8 +13,11 @@
$check = $html->find("h5[plaintext^=Diary No]",0)->plaintext;
$x++;
echo "$check\n";
$record = array( 'check' =>$check, 'link' => $link);
scraperwiki::save(array('check','link'), $record);
if($check != "" || $check != null)
{
$record = array( 'check' =>$check, 'link' => $link);
scraperwiki::save(array('check','link'), $record);
}

}
while ($check != "" || $check != null);
Expand Down

0 comments on commit 24aa786

Please sign in to comment.