Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Update scraper.php
  • Loading branch information
vikash12345 committed Sep 14, 2017
1 parent a084f72 commit 4e23d8f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scraper.php
Expand Up @@ -5,7 +5,7 @@
for($i = 0; $i < count($links); $i++)
{
$link = file_get_html($links[$i]);
if(!$link)
if($link != null || $link == "")
{
foreach($link->find("//[@id='mahasiswa']/table/tbody/tr") as $element)
{
Expand All @@ -21,7 +21,7 @@
if($urls != "/0")
{
$DAKUMENTPAGE = file_get_html($urls);
if(!$DAKUMENTPAGE)
if($DAKUMENTPAGE != null || $DAKUMENTPAGE == "")
{
foreach($DAKUMENTPAGE->find("/html/body/div[2]/div[2]/div[2]/div[1]/div/table/tbody/tr") as $SARTOUT)
{
Expand All @@ -36,7 +36,7 @@
$URL = $data[$loopo];
$Pagestudent = file_get_html($URL);

if(!$Pagestudent)
if($Pagestudent != null || $Pagestudent == "")
{
//This is Details of Students.
$Nama = $Pagestudent->find("/html/body/div[2]/div[2]/div[2]/div[1]/div/table/tbody/tr[1]/td[3]",0)->plaintext;
Expand Down

0 comments on commit 4e23d8f

Please sign in to comment.