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 13, 2017
1 parent 9f5e688 commit e41c120
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions scraper.php
Expand Up @@ -33,15 +33,13 @@
if($SerNo != null || $SerNo != "")
{
$Pagestudent = file_get_html($Namehref++);
if($Pagestudent)
{
//This is Details of Students.
$info['Nama'] = $Pagestudent->find("/html/body/div[2]/div[2]/div[2]/div[1]/div/table/tbody/tr[1]/td[3]",0)->plaintext;
$info['Jenis'] = $Pagestudent->find("/html/body/div[2]/div[2]/div[2]/div[1]/div/table/tbody/tr[2]/td[3]",0)->plaintext;
//This is Details of Students.
$info['Nama'] = $Pagestudent->find("/html/body/div[2]/div[2]/div[2]/div[1]/div/table/tbody/tr[1]/td[3]",0)->plaintext;
$info['Jenis'] = $Pagestudent->find("/html/body/div[2]/div[2]/div[2]/div[1]/div/table/tbody/tr[2]/td[3]",0)->plaintext;
$info['Perguruan'] = $Pagestudent->find("/html/body/div[2]/div[2]/div[2]/div[1]/div/table/tbody/tr[4]/td[3]",0)->plaintext;
$info['Program'] = $Pagestudent->find("/html/body/div[2]/div[2]/div[2]/div[1]/div/table/tbody/tr[5]/td[3]",0)->plaintext;
$info['Nomor'] = $Pagestudent->find("/html/body/div[2]/div[2]/div[2]/div[1]/div/table/tbody/tr[6]/td[3]",0)->plaintext;
$info['Semester'] = $Pagestudent->find("/html/body/div[2]/div[2]/div[2]/div[1]/div/table/tbody/tr[7]/td[3]",0)->plaintext;
$info['Nomor'] = $Pagestudent->find("/html/body/div[2]/div[2]/div[2]/div[1]/div/table/tbody/tr[6]/td[3]",0)->plaintext;
$info['Semester'] = $Pagestudent->find("/html/body/div[2]/div[2]/div[2]/div[1]/div/table/tbody/tr[7]/td[3]",0)->plaintext;
$info['Status_Awal'] = $Pagestudent->find("/html/body/div[2]/div[2]/div[2]/div[1]/div/table/tbody/tr[8]/td[3]",0)->plaintext;
$info['Status_Mahasiswa'] = $Pagestudent->find("/html/body/div[2]/div[2]/div[2]/div[1]/div/table/tbody/tr[9]/td[3]",0)->plaintext;

Expand All @@ -51,7 +49,6 @@
'Nama' => $info['Nama'],
'Jenis' => $info['Jenis'],
'Perguruan' => $info['Perguruan'],
'information_year' => $info['doc_infoyear'],
'Semester' => $info['Semester'],
'Status_Awal' => $info['Status_Awal'],
'Status_Mahasiswa' => $info['Status_Mahasiswa']
Expand All @@ -76,7 +73,7 @@



}

}
}

Expand Down

0 comments on commit e41c120

Please sign in to comment.