CodeIgniter wrapper class library for scraping Unisys data
- Put all the files in
libraries
directory toapplication/libraries
directory in your CodeIgniter project - (Auto)load the 'unisys' library to get started
$this->load->library('unisys');
$auth = $this->unisys->auth('08523999', 'passwordku');
if($auth !== false)
{
// Data Mahasiswa
echo '<pre>';
var_dump($this->unisys->data());
echo '</pre>';
// Foto Mahasiswa
$photo_path = $this->unisys->fetch_photo('foto.jpg');
echo "<img src=\"$photo_path\">";
}